Bug 273511

Summary: AudioContext stuck on Interrupted
Product: WebKit Reporter: Ilya Methot <ilya.methot>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Major CC: ap, cdumez, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   

Description Ilya Methot 2024-04-30 12:10:13 PDT
WebAudio Context continues to be stuck on "interrupted" state on IPhone and IPads without an option to resume.

Most documentation I've found online indicates that the "interrupted" state is triggered by the phone when the user performs some sort of interrupting actions such as tabbing out of the page, closing the phone, taking a call, etc. However in our web example we find that the audiocontext immediately defaults to "interrupted".

Once in this state there does not seem to be an obvious way to return the audio context to running. .resume() does not work.

Is there any method for resuming after interruption for audio contexts?
Comment 1 Alexey Proskuryakov 2024-05-02 13:13:47 PDT
Thank you for the report! Do you have a test that works in other desktop browsers, but not in Safari on iOS?
Comment 2 Radar WebKit Bug Importer 2024-05-07 12:11:15 PDT
<rdar://problem/127685098>
Comment 3 Ilya Methot 2024-05-08 04:07:33 PDT
The web audio context works as expected on Android and other non mobile devices