[iOS] Set AirPlay discovery mode to disabled when page is hidden
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jul 2015 21:42:56 +0000 (21:42 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jul 2015 21:42:56 +0000 (21:42 +0000)
commita425995ff1634608f090a49fbf09eec05f261ae5
tree8aa368037ea541524daa5f1bb331f64105fdf185
parentc24791042230d5c3c2c63e3da77a8391438ccd16
[iOS] Set AirPlay discovery mode to disabled when page is hidden
https://bugs.webkit.org/show_bug.cgi?id=147369

Reviewed by Jer Noble.

* html/MediaElementSession.cpp:
(WebCore::MediaElementSession::requiresPlaybackTargetRouteMonitoring): Return false when
  the client is not visible.
* html/MediaElementSession.h:

* platform/audio/PlatformMediaSession.cpp:
(WebCore::PlatformMediaSession::clientDataBufferingTimerFired): Call configureWireLessTargetMonitoring.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/MediaElementSession.cpp
Source/WebCore/html/MediaElementSession.h
Source/WebCore/platform/audio/PlatformMediaSession.cpp