Bug 273511 - AudioContext stuck on Interrupted
Summary: AudioContext stuck on Interrupted
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-04-30 12:10 PDT by Ilya Methot
Modified: 2024-05-08 04:07 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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