Changeset 248978 in webkit
- Timestamp:
- Aug 21, 2019 5:11:28 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r248977 r248978 1 2019-08-21 Jer Noble <jer.noble@apple.com> 2 3 Adopt AVSystemController_ActiveAudioRouteDidChangeNotification 4 https://bugs.webkit.org/show_bug.cgi?id=200992 5 <rdar://problem/54408993> 6 7 Reviewed by Eric Carlson. 8 9 Follow-up to r248962: When the active audio route changes, and the 10 system instructs us to pause, only pause the currently audible sessions. 11 12 * platform/audio/ios/MediaSessionManagerIOS.h: 13 * platform/audio/ios/MediaSessionManagerIOS.mm: 14 (WebCore::MediaSessionManageriOS::activeAudioRouteDidChange): 15 (-[WebMediaSessionHelper activeAudioRouteDidChange:]): 16 (WebCore::MediaSessionManageriOS::activeRouteDidChange): Deleted. 17 1 18 2019-08-21 Megan Gardner <megan_gardner@apple.com> 2 19 -
trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.h
r248962 r248978 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 -
trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm
r248962 r248978 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.