Changeset 175981 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 3:11:28 PM (11 years ago)
Author:
eric.carlson@apple.com
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Source/WebCore/ChangeLog

    r175980 r175981  
     12014-11-11  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [iOS] video is sometimes allowed to play from the background
     4        https://bugs.webkit.org/show_bug.cgi?id=138522
     5
     6        Rubber-stamped by Jer Noble.
     7
     8        * platform/audio/MediaSession.cpp:
     9        (WebCore::MediaSession::updateClientDataBuffering): Call MediaSessionManager::sessionCanLoadMedia.
     10
    1112014-11-11  Eric Carlson  <eric.carlson@apple.com>
    212
  • TabularUnified trunk/Source/WebCore/platform/audio/MediaSession.cpp

    r175777 r175981  
    191191        m_clientDataBufferingTimer.stop();
    192192
    193     bool shouldBuffer = m_state == Playing || !m_client.elementIsHidden();
    194     m_client.setShouldBufferData(shouldBuffer);
     193    m_client.setShouldBufferData(MediaSessionManager::sharedManager().sessionCanLoadMedia(*this));
    195194}
    196195
Note: See TracChangeset for help on using the changeset viewer.