[iOS] no need to deactivate audio session
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jun 2014 18:29:57 +0000 (18:29 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Jun 2014 18:29:57 +0000 (18:29 +0000)
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170485 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp

index 525dc71..15b87c4 100644 (file)
@@ -1,3 +1,15 @@
+2014-06-26  Eric Carlson  <eric.carlson@apple.com>
+
+        [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.
+
 2014-06-26  Jer Noble  <jer.noble@apple.com>
 
         [MSE] Refactoring: Differentiate between SampleMap decode and presentation order methods
index d8ac2bc..26b8b17 100644 (file)
@@ -55,7 +55,8 @@ void MediaSessionManager::updateSessionState()
 #endif
 
 #if PLATFORM(IOS)
-    AudioSession::sharedSession().setActive(hasActive());
+    if (hasActive())
+        AudioSession::sharedSession().setActive(true);
 
     if (!Settings::shouldManageAudioSessionCategory())
         return;