chrisguttandin / standardized-audio-context

A cross-browser wrapper for the Web Audio API which aims to closely follow the standard.
MIT License
680 stars 33 forks source link

iOS 15.2 Support #991

Closed wbuchwalter closed 2 years ago

wbuchwalter commented 2 years ago

Hello,

I cannot seem to get the Audio API to work on iOS 15 (my exact version at the moment is 15.2.1). I Tried https://chrisguttandin.github.io/standardized-audio-context-demo/ with Safari/Firefox/Edge/Chrome but I am unable to get any sound.

Wondering is seeing the same thing?

Thanks!

wbuchwalter commented 2 years ago

So this was actually caused by the physical mute switch on the iPhone. The physical switch prevents Web Audio API from playing any sound, but not the <audio> tags for some reason.

See https://www.npmjs.com/package/unmute-ios-audio for a fix.

chrisguttandin commented 2 years ago

Hi @wbuchwalter, thanks for reporting the fix.