Changeset 231921 in webkit


Ignore:
Timestamp:
May 17, 2018 2:48:49 PM (6 years ago)
Author:
eric.carlson@apple.com
Message:

[iOS] Update AirPlay route monitoring
https://bugs.webkit.org/show_bug.cgi?id=185706
<rdar://problem/40230677>

Unreviewed, fix extra zoom mode build after r231913.

  • platform/audio/ios/MediaSessionManagerIOS.mm:

(-[WebMediaSessionHelper dealloc]):
(-[WebMediaSessionHelper hasWirelessTargetsAvailable]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r231920 r231921  
     12018-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
    1132018-05-17  Jer Noble  <jer.noble@apple.com>
    214
  • trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm

    r231913 r231921  
    5252SOFT_LINK_FRAMEWORK(AVFoundation)
    5353SOFT_LINK_CLASS(AVFoundation, AVAudioSession)
    54 SOFT_LINK_CLASS(AVFoundation, AVRouteDetector)
    5554SOFT_LINK_POINTER(AVFoundation, AVAudioSessionInterruptionNotification, NSString *)
    5655SOFT_LINK_POINTER(AVFoundation, AVAudioSessionInterruptionTypeKey, NSString *)
    5756SOFT_LINK_POINTER(AVFoundation, AVAudioSessionInterruptionOptionKey, NSString *)
    5857SOFT_LINK_POINTER(AVFoundation, AVRouteDetectorMultipleRoutesDetectedDidChangeNotification, NSString *)
     58
     59#if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE)
     60SOFT_LINK_CLASS(AVFoundation, AVRouteDetector)
     61#endif
    5962
    6063#define AVAudioSession getAVAudioSessionClass()
     
    102105    MediaSessionManageriOS* _callback;
    103106
     107#if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE)
    104108    RetainPtr<AVRouteDetector> _routeDetector;
     109#endif
    105110    bool _monitoringAirPlayRoutes;
    106111    bool _startMonitoringAirPlayRoutesPending;
     
    116121- (BOOL)hasWirelessTargetsAvailable;
    117122
    118 #if HAVE(MEDIA_PLAYER)
     123#if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE)
    119124- (void)startMonitoringAirPlayRoutes;
    120125- (void)stopMonitoringAirPlayRoutes;
     
    346351    LOG(Media, "-[WebMediaSessionHelper dealloc]");
    347352
    348 #if HAVE(MEDIA_PLAYER)
     353#if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE)
    349354    if (!pthread_main_np()) {
    350355        dispatch_async(dispatch_get_main_queue(), [routeDetector = WTFMove(_routeDetector)] () mutable {
     
    372377{
    373378    LOG(Media, "-[WebMediaSessionHelper hasWirelessTargetsAvailable]");
     379#if HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE)
    374380    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)
    378387- (void)startMonitoringAirPlayRoutes
    379388{
     
    420429    _routeDetector.get().routeDetectionEnabled = NO;
    421430}
    422 #endif // HAVE(MEDIA_PLAYER)
     431#endif // HAVE(MEDIA_PLAYER) && !ENABLE(EXTRA_ZOOM_MODE)
    423432
    424433- (void)interruption:(NSNotification *)notification
Note: See TracChangeset for help on using the changeset viewer.