[Webkit-unassigned] [Bug 173332] HTML5 audio .ended event not fired when app in background or phone screen is off

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 14 08:26:30 PDT 2017


--- Comment #2 from Eric Carlson <eric.carlson at apple.com> ---
The web proces, normally suspended when in the background, is kept alive while playing audio (and for a few other reasons). The 'ended' event is fired asynchronously, so while the event is scheduled immediately when playback finishes, the task is suspended before the next runloop so the event doesn't fire until the process resumes. 

We should probably postpone suspension for a few cycles when playback stops to give scripts an opportunity to restart playback.

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/20170614/31222ebd/attachment.html>

More information about the webkit-unassigned mailing list