WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
220879
[iOS] Set background playback restriction for WebAudio
https://bugs.webkit.org/show_bug.cgi?id=220879
Summary
[iOS] Set background playback restriction for WebAudio
Eric Carlson
Reported
2021-01-22 15:17:08 PST
WebAudio does not play in the background on iOS both because audio doesn't play when the category is set to `AVAudioSessionCategoryAmbient`, and because the AudioContext is paused when the web process is forwarded the `UIApplicationWillResignActiveNotification` notification. This notification isn't forwarded when the WebView is hosted in SafariViewController so the AudioContext is not paused, so it resumes playing when the application is foregrounded even if the view controller is not in the foreground.
Attachments
Patch
(6.92 KB, patch)
2021-01-22 15:39 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Patch for landing
(7.78 KB, patch)
2021-01-23 09:58 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2021-01-22 15:18:13 PST
<
rdar://72949281
>
Eric Carlson
Comment 2
2021-01-22 15:39:02 PST
Created
attachment 418188
[details]
Patch
Eric Carlson
Comment 3
2021-01-23 09:58:12 PST
Created
attachment 418227
[details]
Patch for landing
EWS
Comment 4
2021-01-23 12:31:42 PST
Committed
r271779
: <
https://trac.webkit.org/changeset/271779
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 418227
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug