[Webkit-unassigned] [Bug 281566] New: AudioCtx.resume() never resolves
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 16 02:23:08 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=281566
Bug ID: 281566
Summary: AudioCtx.resume() never resolves
Product: WebKit
Version: Safari 17
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Web Audio
Assignee: webkit-unassigned at lists.webkit.org
Reporter: erkapic.luka.os at gmail.com
CC: cdumez at apple.com
AudioContext.resolve() is never resolved if browser is suspended to background.
Use case scenario is that we listen for document.addEventListener("visibilitychanged") and try to resume AudioContext when document is visible.
However `AudioContext.resolve()` is never resumed or resolved/rejected.
Typically this will happen if:
- we play sound
- go to background
- go back to browser and try to resume context after visibility changed event
- no sound is played as resume is never resolved
This is not an issue when scrolling between tabs, only if browser is suspended to background.
Can be tested here https://codepen.io/Luka-Erkapic/pen/vYoxvPG
- simply play sound
- go to background
- go back to browser
- no sound is playing even if "AudioContext.resume()" is called.
--
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/20241016/c08d7512/attachment-0001.htm>
More information about the webkit-unassigned
mailing list