Changeset 170485 in webkit


Ignore:
Timestamp:
Jun 26, 2014 11:29:57 AM (10 years ago)
Author:
eric.carlson@apple.com
Message:

[iOS] no need to deactivate audio session
https://bugs.webkit.org/show_bug.cgi?id=134350

Reviewed by Jer Noble.

  • platform/audio/mac/MediaSessionManagerMac.cpp:

(MediaSessionManager::updateSessionState): Don't bother calling

AudioSession::setActive(false), WebCore's audio session will be deactivated
automatically if another application begins playing audio.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r170484 r170485  
     12014-06-26  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [iOS] no need to deactivate audio session
     4        https://bugs.webkit.org/show_bug.cgi?id=134350
     5
     6        Reviewed by Jer Noble.
     7
     8        * platform/audio/mac/MediaSessionManagerMac.cpp:
     9        (MediaSessionManager::updateSessionState): Don't bother calling
     10            AudioSession::setActive(false), WebCore's audio session will be deactivated
     11            automatically if another application begins playing audio.
     12
    1132014-06-26  Jer Noble  <jer.noble@apple.com>
    214
  • trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp

    r170370 r170485  
    5656
    5757#if PLATFORM(IOS)
    58     AudioSession::sharedSession().setActive(hasActive());
     58    if (hasActive())
     59        AudioSession::sharedSession().setActive(true);
    5960
    6061    if (!Settings::shouldManageAudioSessionCategory())
Note: See TracChangeset for help on using the changeset viewer.