[Webkit-unassigned] [Bug 198277] Audio stops playing when standalone web app is no longer in foreground

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 12 09:52:57 PDT 2021


--- Comment #60 from Peter Fernandes <supersonicandtails at gmail.com> ---
I'd just like to leave a use case here:

I have a music player app that supports playlist-style playback of songs.  I listen to the `onended` event of the currently-playing Audio element to know when it is time to load and play the next track (this includes a fetch request to get some track metadata from the server).

However, Safari on iOS won't run that JavaScript to completion when the tab is not in the foreground. This means that if my phone is locked, the playlist will just stop playing once the current song has finished.

I'm not sure what the expectation is here, but I am hoping that this use case will be supported at least when in standalone PWA mode.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210912/bab69755/attachment.htm>

More information about the webkit-unassigned mailing list