Changeset 249009 in webkit
- Timestamp:
- Aug 22, 2019, 8:45:31 AM (7 years ago)
- Location:
- branches/safari-608-branch/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/audio/ios/MediaSessionManagerIOS.h (modified) (1 diff)
-
platform/audio/ios/MediaSessionManagerIOS.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608-branch/Source/WebCore/ChangeLog
r249008 r249009 1 2019-08-21 Kocsen Chung <kocsen_chung@apple.com> 2 3 Cherry-pick r248978. rdar://problem/54579627 4 5 Adopt AVSystemController_ActiveAudioRouteDidChangeNotification 6 https://bugs.webkit.org/show_bug.cgi?id=200992 7 <rdar://problem/54408993> 8 9 Reviewed by Eric Carlson. 10 11 Follow-up to r248962: When the active audio route changes, and the 12 system instructs us to pause, only pause the currently audible sessions. 13 14 * platform/audio/ios/MediaSessionManagerIOS.h: 15 * platform/audio/ios/MediaSessionManagerIOS.mm: 16 (WebCore::MediaSessionManageriOS::activeAudioRouteDidChange): 17 (-[WebMediaSessionHelper activeAudioRouteDidChange:]): 18 (WebCore::MediaSessionManageriOS::activeRouteDidChange): Deleted. 19 20 21 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248978 268f45cc-cd09-0410-ab3c-d52691b4dbfc 22 23 2019-08-21 Jer Noble <jer.noble@apple.com> 24 25 Adopt AVSystemController_ActiveAudioRouteDidChangeNotification 26 https://bugs.webkit.org/show_bug.cgi?id=200992 27 <rdar://problem/54408993> 28 29 Reviewed by Eric Carlson. 30 31 Follow-up to r248962: When the active audio route changes, and the 32 system instructs us to pause, only pause the currently audible sessions. 33 34 * platform/audio/ios/MediaSessionManagerIOS.h: 35 * platform/audio/ios/MediaSessionManagerIOS.mm: 36 (WebCore::MediaSessionManageriOS::activeAudioRouteDidChange): 37 (-[WebMediaSessionHelper activeAudioRouteDidChange:]): 38 (WebCore::MediaSessionManageriOS::activeRouteDidChange): Deleted. 39 1 40 2019-08-21 Kocsen Chung <kocsen_chung@apple.com> 2 41 -
branches/safari-608-branch/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.h
r249008 r249009 51 51 void carPlayServerDied(); 52 52 void updateCarPlayIsConnected(Optional<bool>&&); 53 void active RouteDidChange(Optional<bool>&&);53 void activeAudioRouteDidChange(Optional<bool>&&); 54 54 #endif 55 55 -
branches/safari-608-branch/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm
r249008 r249009 227 227 } 228 228 229 void MediaSessionManageriOS::active RouteDidChange(Optional<bool>&& shouldPause)229 void MediaSessionManageriOS::activeAudioRouteDidChange(Optional<bool>&& shouldPause) 230 230 { 231 231 if (!shouldPause || !shouldPause.value()) … … 233 233 234 234 forEachSession([](auto& session) { 235 if ( !session.shouldOverridePauseDuringRouteChange())235 if (session.canProduceAudio() && !session.shouldOverridePauseDuringRouteChange()) 236 236 session.pauseSession(); 237 237 }); … … 516 516 callOnWebThreadOrDispatchAsyncOnMainThread([protectedSelf = retainPtr(self), shouldPause = WTFMove(shouldPause)]() mutable { 517 517 if (auto* callback = protectedSelf->_callback) 518 callback->active RouteDidChange(WTFMove(shouldPause));518 callback->activeAudioRouteDidChange(WTFMove(shouldPause)); 519 519 }); 520 520
Note:
See TracChangeset
for help on using the changeset viewer.