scottschiller / SoundManager2

A JavaScript Sound API supporting MP3, MPEG4 and HTML5 audio + RTMP, providing reliable cross-browser/platform audio control in as little as 12 KB. BSD licensed.
http://www.schillmania.com/projects/soundmanager2/
Other
4.99k stars 768 forks source link

playNext does not work when iOS device is locked #267

Open deadroxy opened 6 months ago

deadroxy commented 6 months ago

Been using the fantastic basic mp3 player button code for years, but I've been facing an issue I still cannot figure out. I have playNext set to true in the config, but I keep running into an error on mobile/iOS devices.

Whenever there are multiple mp3 play buttons present on a page in my web application, playNext works great to advance through them to play the whole playlist. This feature works on desktop/laptop web browsers as well as mobile browsers except when the mobile device is locked. Once the mobile screen locks, the playNext feature stops.

I've tried setting up SoundManager2 to use Flash version 9, but that didn't bring me any luck. I've been trying to find the root of the issue, but it's tough to troubleshoot. Any ideas about what to try?