Title: [175981] trunk/Source/WebCore
- Revision
- 175981
- Author
- [email protected]
- Date
- 2014-11-11 15:11:28 -0800 (Tue, 11 Nov 2014)
Log Message
[iOS] video is sometimes allowed to play from the background
https://bugs.webkit.org/show_bug.cgi?id=138522
Rubber-stamped by Jer Noble.
* platform/audio/MediaSession.cpp:
(WebCore::MediaSession::updateClientDataBuffering): Call MediaSessionManager::sessionCanLoadMedia.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (175980 => 175981)
--- trunk/Source/WebCore/ChangeLog 2014-11-11 22:59:28 UTC (rev 175980)
+++ trunk/Source/WebCore/ChangeLog 2014-11-11 23:11:28 UTC (rev 175981)
@@ -1,5 +1,15 @@
2014-11-11 Eric Carlson <[email protected]>
+ [iOS] video is sometimes allowed to play from the background
+ https://bugs.webkit.org/show_bug.cgi?id=138522
+
+ Rubber-stamped by Jer Noble.
+
+ * platform/audio/MediaSession.cpp:
+ (WebCore::MediaSession::updateClientDataBuffering): Call MediaSessionManager::sessionCanLoadMedia.
+
+2014-11-11 Eric Carlson <[email protected]>
+
[iOS] a page with video in optimized fullscreen is visible
https://bugs.webkit.org/show_bug.cgi?id=138632
Modified: trunk/Source/WebCore/platform/audio/MediaSession.cpp (175980 => 175981)
--- trunk/Source/WebCore/platform/audio/MediaSession.cpp 2014-11-11 22:59:28 UTC (rev 175980)
+++ trunk/Source/WebCore/platform/audio/MediaSession.cpp 2014-11-11 23:11:28 UTC (rev 175981)
@@ -190,8 +190,7 @@
if (m_clientDataBufferingTimer.isActive())
m_clientDataBufferingTimer.stop();
- bool shouldBuffer = m_state == Playing || !m_client.elementIsHidden();
- m_client.setShouldBufferData(shouldBuffer);
+ m_client.setShouldBufferData(MediaSessionManager::sharedManager().sessionCanLoadMedia(*this));
}
bool MediaSession::isHidden() const
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes