Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playing HTML5 audio without stopping iTunes audio on iPhone

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!

like image 717
Garrett Avatar asked Apr 02 '13 22:04

Garrett


1 Answers

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.

like image 168
Kevin Ennis Avatar answered Oct 05 '22 23:10

Kevin Ennis