I'm trying to play audio in the background, but as soon as I insert the <audio>
element into the page, the background music on the iPhone stops. I'm wondering if there's a solution to this via HTML5, or if I'm going to have to go through native and build yet another plugin to play my audio and dim out the background audio.
Thanks!
As far as I know, you can't do it. Even with the Web Audio API in iOS 6, as soon as you begin playback of an audio buffer in the browser, iTunes is immediately paused.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With