[Webkit-unassigned] [Bug 281955] [iOS] AudioContext is not resuming when page is put to foreground

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 23 02:14:29 PDT 2024


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

--- Comment #2 from youenn fablet <youennf at gmail.com> ---
Doing some debugging, the following happens:
1. AudioContext gets interrupted by MediaSessionManageriOS::applicationDidEnterBackground
2. AudioContext gets uninterrupted by MediaSessionManageriOS::applicationDidEnterForeground
3. AudioContext tries to restart and calls MediaSessionManageriOS::maybeActivateAudioSession
4. MediaSessionManageriOS::maybeActivateAudioSession actually fails

I can see the following related logs:
audiomxd: (MediaExperience) [com.apple.coremedia] -CMSUtilities- CMSUtility_IsAllowedToStartPlaying: Client sid:0x7a55a, com.apple.WebKit(3068), 'prim' with category AmbientSound and mode Default and mixable is not allowed to play although it has background entitlement because it is a lock stopper
om.apple.WebKit.GPU: (WebCore) [com.apple.WebKit:Media] failed to activate audio session, error: Session activation failed

The AudioSession then gets uninterrupted but this does not propagate to AudioContext.

-- 
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/20241023/8dac023f/attachment-0001.htm>


More information about the webkit-unassigned mailing list