[iOS] Don't clear AVPlayerItem when pausing if AirPlay is active
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Aug 2015 18:10:19 +0000 (18:10 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Aug 2015 18:10:19 +0000 (18:10 +0000)
commite3ae3ddc132b57805782b2ee740703a3358938b3
tree28d49740fe33f80045fed516ab720f721e12ea8d
parent1d88615a72d8953be599793ccf057110fe9da8cb
[iOS] Don't clear AVPlayerItem when pausing if AirPlay is active
https://bugs.webkit.org/show_bug.cgi?id=148319

Reviewed by Jer Noble.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::purgeBufferedDataIfPossible): Do nothing if the session
  is allowed to load data when in the background and we are not under memory pressure.

* platform/audio/ios/MediaSessionManagerIOS.mm:
(WebCore::MediaSessionManageriOS::sessionCanLoadMedia): Call base class.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm