Changeset 186764 in webkit


Ignore:
Timestamp:
Jul 13, 2015 9:54:53 AM (9 years ago)
Author:
eric.carlson@apple.com
Message:

[iOS] Cancel AirPlay explicitly when exiting from full screen
https://bugs.webkit.org/show_bug.cgi?id=146902
<rdar://problem/20923632>

Reviewed by Brent Fulgham.

  • platform/ios/WebVideoFullscreenInterfaceAVKit.h:
  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

(WebVideoFullscreenInterfaceAVKit::~WebVideoFullscreenInterfaceAVKit): Call setExternalPlayback(false)

if playing to an external screen.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r186741 r186764  
     12015-07-13  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [iOS] Cancel AirPlay explicitly when exiting from full screen
     4        https://bugs.webkit.org/show_bug.cgi?id=146902
     5        <rdar://problem/20923632>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        * platform/ios/WebVideoFullscreenInterfaceAVKit.h:
     10        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     11        (WebVideoFullscreenInterfaceAVKit::~WebVideoFullscreenInterfaceAVKit): Call setExternalPlayback(false)
     12          if playing to an external screen.
     13
    1142015-07-12  Chris Fleizach  <cfleizach@apple.com>
    215
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h

    r185834 r186764  
    7676        return adoptRef(*new WebVideoFullscreenInterfaceAVKit());
    7777    }
    78     virtual ~WebVideoFullscreenInterfaceAVKit() { }
     78    virtual ~WebVideoFullscreenInterfaceAVKit();
    7979    WEBCORE_EXPORT void setWebVideoFullscreenModel(WebVideoFullscreenModel*);
    8080    WEBCORE_EXPORT void setWebVideoFullscreenChangeObserver(WebVideoFullscreenChangeObserver*);
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r186465 r186764  
    752752}
    753753
     754WebVideoFullscreenInterfaceAVKit::~WebVideoFullscreenInterfaceAVKit()
     755{
     756    WebAVPlayerController* playerController = m_playerController.get();
     757    if (playerController && playerController.externalPlaybackActive)
     758        setExternalPlayback(false, TargetTypeNone, "");
     759}
     760
    754761void WebVideoFullscreenInterfaceAVKit::resetMediaState()
    755762{
Note: See TracChangeset for help on using the changeset viewer.