[Webkit-unassigned] [Bug 221413] Safari does not execute JavaScript code to play another audio item when playing backgrounded FairPlay content
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 6 14:17:23 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=221413
Brad Isbell <brad at audiopump.co> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |brad at audiopump.co
--- Comment #4 from Brad Isbell <brad at audiopump.co> ---
Created attachment 458973
--> https://bugs.webkit.org/attachment.cgi?id=458973&action=review
Demonstrates the bug in iOS Safari
This bug is still an issue, and is also a problem for regular audio files without DRM.
Attached is a page with some script demonstrating the issue.
Observations:
- The `ended` event does fire and its handlers do run, even when the screen is off.
- Upon replacing the `src` of the `<audio>` element, it cannot be played via script when the screen is off.
- The `paused` property value is `false`, `currentTime` is `0` zero. Audio playback does not occur.
- The only way to resume playback is to unlock phone, and use a UI element to call `.play()` on the audio element.
This prevents web apps from playing from a playlist of media. It also seems to be a regression, as this method used to work. This method is also documented here: https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html#//apple_ref/doc/uid/TP40009523-CH3-SW5
--
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/20220506/6821837c/attachment-0001.htm>
More information about the webkit-unassigned
mailing list