[Webkit-unassigned] [Bug 231105] AudioContext stops playing when minimizing or moving the macOS Safari window to the background.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 18 06:16:20 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=231105

--- Comment #6 from youenn fablet <youennf at gmail.com> ---
I was able to reproduce.
My understanding is that AudioContext gets interrupted/uninterrupted in case of getting backgrounded.
HTMLMediaElement::shouldOverrideBackgroundPlaybackRestriction has a special behavior to override background interruption in some cases, like when playing an audio track.

We could apply the same rule for AudioContext given there is no way the realtime data could be played again when resuming.

We have a somewhat inconsistent behavior as a track created from AudioContext will allow a media element to keep playing, but the AudioContext being paused, it would play silence.

I would tend to allow AudioContext to override interruptions in case the page is capturing as AudioContext could be used to improve the audio data sent to other participants.

-- 
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/20211018/e6089dd9/attachment.htm>


More information about the webkit-unassigned mailing list