Why does HTML 5 Audio disregards mobile device aud

2020-07-06 03:42发布

I have a site that targets mobile android users. I’m using the HTML5 audio to play background music.

The audio is played even if the device is on silent; also the audio is played in the highest volume regardless of the device volume settings.

Does anyone know why these things happen or how to get the device current audio settings? I’d prefer a client side (javascript) solution but I’m open to all solution.

Thank you for your help Moshe S.

1条回答
甜甜的少女心
2楼-- · 2020-07-06 04:01

In Android, even if the phone is on silent, the media volume will not change.

I'm not sure if android allows for the modification of the system sound settings through the browser, since the default one does not have permission to change/read the volume state.

查看更多
登录 后发表回答