Changeset 171299 in webkit
- Timestamp:
- Jul 21, 2014, 8:03:11 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r171294 r171299 1 2014-07-21 Eric Carlson <eric.carlson@apple.com> 2 3 [iOS] a Paused media session is not active 4 https://bugs.webkit.org/show_bug.cgi?id=135108 5 6 Reviewed by Darin Adler. 7 8 Activating the shared AudioSession will pause audio playing in another application, 9 so only report a Playing media sessions as active. 10 11 * platform/audio/MediaSessionManager.cpp: 12 * platform/audio/MediaSessionManager.h: 13 (WebCore::MediaSessionManager::activeAudioSessionRequired): Renamed from hasActive to make 14 clear what it does. Only return true for a session that is Playing. 15 16 * platform/audio/mac/MediaSessionManagerMac.cpp: 17 (MediaSessionManager::updateSessionState): hasActive renamed to activeAudioSessionRequired. 18 1 19 2014-07-21 Carlos Garcia Campos <cgarcia@igalia.com> 2 20 -
trunk/Source/WebCore/platform/audio/MediaSessionManager.cpp
r171081 r171299 69 69 } 70 70 71 bool MediaSessionManager:: hasActive() const71 bool MediaSessionManager::activeAudioSessionRequired() const 72 72 { 73 73 for (auto* session : m_sessions) { 74 if (session->mediaType() != MediaSession::None && (session->state() == MediaSession::State::Playing || session->state() == MediaSession::State::Paused))74 if (session->mediaType() != MediaSession::None && session->state() == MediaSession::State::Playing) 75 75 return true; 76 76 } -
trunk/Source/WebCore/platform/audio/MediaSessionManager.h
r171071 r171299 60 60 61 61 bool has(MediaSession::MediaType) const; 62 bool hasActive() const;63 62 int count(MediaSession::MediaType) const; 63 bool activeAudioSessionRequired() const; 64 64 65 65 void beginInterruption(MediaSession::InterruptionType); -
trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp
r171069 r171299 63 63 64 64 #if PLATFORM(IOS) 65 if ( hasActive())65 if (activeAudioSessionRequired()) 66 66 AudioSession::sharedSession().setActive(true); 67 67
Note:
See TracChangeset
for help on using the changeset viewer.