HTML5 audio player bug on iOS - demo

Repro steps:

  1. Click
  2. Once the audio starts playing, turn the phone screen off, or move Safari to the background
  3. Wait for the song to end. (song is 15 seconds long)

Bug: When the song ends, the next song should begin playing. Instead, there will only be silence; the audio.ended event never fires because the screen is off or the web app is in the background.