ToneDen/Player

iPad Playback Issues

Closed this issue · 1 comments

Reported at: https://wordpress.org/support/topic/next-song-not-playing-on-ipad?replies=2#post-6455538

Working fine in desktop browser but not working on iPad running newest OS

When a song finishes playing in the playlist, the next song gets highlighted but it never plays. The rotating icon indicates that the song is loading but nothing ever happens.

I suspect this is because Apple doesn't allow audio to be loaded on mobile Safari unless initiated by a user interaction: http://stackoverflow.com/questions/3009888/autoplay-audio-files-on-an-ipad-with-html5

From this article:

In Safari on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and autoplay are disabled. No data is loaded until the user initiates it. This means the JavaScript play() and load() methods are also inactive until the user initiates playback, unless the play() or load() method is triggered by user action. In other words, a user-initiated Play button works, but an onLoad="play()" event does not.

This plays the movie:

This does nothing on iOS: