RESOLVED FIXED 188127
[iOS] Don't deactivate audio session
https://bugs.webkit.org/show_bug.cgi?id=188127
Summary [iOS] Don't deactivate audio session
Eric Carlson
Reported 2018-07-27 15:53:44 PDT
r233435 includes a change that deactivates the shared audio session when there are no more active media elements. This is a good in WK2 because it allows other applications to resume playing audio when WebKit stops playing, but it is potentially bad in WK1 where the host app may also be playing audio. Remove the code for now.
Attachments
Patch (1.91 KB, patch)
2018-07-27 16:11 PDT, Eric Carlson
no flags
Eric Carlson
Comment 1 2018-07-27 15:55:28 PDT
Eric Carlson
Comment 2 2018-07-27 16:11:21 PDT
Jon Lee
Comment 3 2018-07-27 16:57:36 PDT
Comment on attachment 345966 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345966&action=review > Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp:-167 > -#endif Can we write a test for this?
WebKit Commit Bot
Comment 4 2018-07-27 17:24:09 PDT
Comment on attachment 345966 [details] Patch Clearing flags on attachment: 345966 Committed r234339: <https://trac.webkit.org/changeset/234339>
WebKit Commit Bot
Comment 5 2018-07-27 17:24:11 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 6 2018-07-28 15:28:56 PDT
Comment on attachment 345966 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345966&action=review > Source/WebCore/ChangeLog:12 > + r233435 includes a change that deactivates the shared audio session when there are no more > + active media sessions. This is a good in WK2 because it allows other applications to resume > + playing audio when WebKit stops playing, but it is potentially bad in WK1 where the host > + app may also be playing audio. So why didn’t we keep it for WK2?
Eric Carlson
Comment 7 2018-07-28 17:12:52 PDT
Comment on attachment 345966 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345966&action=review >> Source/WebCore/ChangeLog:12 >> + app may also be playing audio. > > So why didn’t we keep it for WK2? I filed rdar://42678977 to add it back for WK2, but there are potential issues we need to investigate first (eg. rdar://42672521, rdar://42267132).
Eric Carlson
Comment 8 2019-01-07 13:22:23 PST
(In reply to Eric Carlson from comment #7) > Comment on attachment 345966 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=345966&action=review > > >> Source/WebCore/ChangeLog:12 > >> + app may also be playing audio. > > > > So why didn’t we keep it for WK2? > > I filed rdar://42678977 to add it back for WK2, but there are potential > issues we need to investigate first (eg. rdar://42672521, rdar://42267132). Fixed in bug 193188.
Note You need to log in before you can comment on or make changes to this bug.