Changeset 231921 in webkit
- Timestamp:
- May 17, 2018 2:48:49 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r231920 r231921 1 2018-05-17 Eric Carlson <eric.carlson@apple.com> 2 3 [iOS] Update AirPlay route monitoring 4 https://bugs.webkit.org/show_bug.cgi?id=185706 5 <rdar://problem/40230677> 6 7 Unreviewed, fix extra zoom mode build after r231913. 8 9 * platform/audio/ios/MediaSessionManagerIOS.mm: 10 (-[WebMediaSessionHelper dealloc]): 11 (-[WebMediaSessionHelper hasWirelessTargetsAvailable]): 12 1 13 2018-05-17 Jer Noble <jer.noble@apple.com> 2 14 -
trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm
r231913 r231921 52 52 SOFT_LINK_FRAMEWORK(AVFoundation) 53 53 SOFT_LINK_CLASS(AVFoundation, AVAudioSession) 54 SOFT_LINK_CLASS(AVFoundation, AVRouteDetector)55 54 SOFT_LINK_POINTER(AVFoundation, AVAudioSessionInterruptionNotification, NSString *) 56 55 SOFT_LINK_POINTER(AVFoundation, AVAudioSessionInterruptionTypeKey, NSString *) 57 56 SOFT_LINK_POINTER(AVFoundation, AVAudioSessionInterruptionOptionKey, NSString *) 58 57 SOFT_LINK_POINTER(AVFoundation, AVRouteDetectorMultipleRoutesDetectedDidChangeNotification, NSString *) 58 59 #if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE) 60 SOFT_LINK_CLASS(AVFoundation, AVRouteDetector) 61 #endif 59 62 60 63 #define AVAudioSession getAVAudioSessionClass() … … 102 105 MediaSessionManageriOS* _callback; 103 106 107 #if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE) 104 108 RetainPtr<AVRouteDetector> _routeDetector; 109 #endif 105 110 bool _monitoringAirPlayRoutes; 106 111 bool _startMonitoringAirPlayRoutesPending; … … 116 121 - (BOOL)hasWirelessTargetsAvailable; 117 122 118 #if HAVE(MEDIA_PLAYER) 123 #if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE) 119 124 - (void)startMonitoringAirPlayRoutes; 120 125 - (void)stopMonitoringAirPlayRoutes; … … 346 351 LOG(Media, "-[WebMediaSessionHelper dealloc]"); 347 352 348 #if HAVE(MEDIA_PLAYER) 353 #if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE) 349 354 if (!pthread_main_np()) { 350 355 dispatch_async(dispatch_get_main_queue(), [routeDetector = WTFMove(_routeDetector)] () mutable { … … 372 377 { 373 378 LOG(Media, "-[WebMediaSessionHelper hasWirelessTargetsAvailable]"); 379 #if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE) 374 380 return _routeDetector.get().multipleRoutesDetected; 375 } 376 377 #if HAVE(MEDIA_PLAYER) 381 #else 382 return NO; 383 #endif 384 } 385 386 #if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE) 378 387 - (void)startMonitoringAirPlayRoutes 379 388 { … … 420 429 _routeDetector.get().routeDetectionEnabled = NO; 421 430 } 422 #endif // HAVE(MEDIA_PLAYER) 431 #endif // HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE) 423 432 424 433 - (void)interruption:(NSNotification *)notification
Note: See TracChangeset
for help on using the changeset viewer.