howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

Expected behavior when Silent Mode is on in iOS Safari?

Open hubol opened this issue 4 years ago • 9 comments

In iOS Safari with Silent Mode on, some of the demos at https://www.howlerjs.com will not play sound. Music Player and Radio play sound in this mode, but the other demos do not. Why is this?

Running iOS 14.1

hubol avatar Jan 11 '21 02:01 hubol

This is still a problem. I had to turn off Silent Mode (which usually applies only to the ringer) in order for my phone to play sound.

ethanmay avatar May 25 '21 23:05 ethanmay

Came across the same Problem.

https://stackoverflow.com/questions/21122418/ios-webaudio-only-works-on-headphones/46839941#46839941

seems like it has to do with HTML5 vs WebAudio. There is this unmute JavaScript that does a workaround. Is there a way to use it with howler?

https://github.com/swevans/unmute

EXPSTUDIOmo avatar Aug 12 '21 19:08 EXPSTUDIOmo

An alternative solution to this problem is to force HTML5 audio with the html5 flag: https://github.com/goldfire/howler.js#html5-boolean-false

derindutz avatar Jan 20 '22 17:01 derindutz