Skip to content Skip to sidebar Skip to footer

Limitations Of Html5 Audio On Ios 4? Playlisting, Background, Etc

I've been evaluating HTML5 audio on iOS 4 and have been trying to understand its limitations. From what I can tell... It is possible to play audio in the background It is not poss

Solution 1:

This is quite an old question, so I'm not sure if you've found an answer already or not.


One thing I know is that an audio clip cannot be played via JavaScript on mobile Safari.

Autoplay audio files on an iPad with HTML5

The only way to make audio play, is through a click event. This wasn't the case on 3.x, but on 4.x it is. This is because Apple doesn't want the webapp to download audio on a 3g connection programmatically, so they force the user to initiate it.

I would think that if all of the tracks were started downloading (cached), then it may be possible. I would try forcing the user to start one track, and at the same time call .load() on all of the other tracks (in the same click handler). This will force the iOS device to start downloading the audio tracks, and you may be able to play the next track (not sure though).

Post a Comment for "Limitations Of Html5 Audio On Ios 4? Playlisting, Background, Etc"