Video sometimes flickers when playing to AppleTV
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 19:42:29 +0000 (19:42 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Jul 2018 19:42:29 +0000 (19:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=187193
<rdar://problem/40153865>

Unreviewed, fix a broken API test.

* platform/audio/ios/AudioSessionIOS.mm:
(WebCore::AudioSession::setCategory): None should set the category to AVAudioSessionCategoryAmbient,
because it signals that WebKit is not playing audio so we want allow other apps to play.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/audio/ios/AudioSessionIOS.mm

index e39e0a6..556f60e 100644 (file)
@@ -1,3 +1,15 @@
+2018-07-05  Eric Carlson  <eric.carlson@apple.com>
+
+        Video sometimes flickers when playing to AppleTV
+        https://bugs.webkit.org/show_bug.cgi?id=187193
+        <rdar://problem/40153865>
+
+        Unreviewed, fix a broken API test.
+
+        * platform/audio/ios/AudioSessionIOS.mm:
+        (WebCore::AudioSession::setCategory): None should set the category to AVAudioSessionCategoryAmbient, 
+        because it signals that WebKit is not playing audio so we want allow other apps to play.
+
 2018-07-05  Per Arne Vollan  <pvollan@apple.com>
 
         Use ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING) in ScrollAnimatorMac.mm
index 86d653b..61c1edd 100644 (file)
@@ -135,7 +135,8 @@ void AudioSession::setCategory(CategoryType newCategory)
         categoryString = AVAudioSessionCategoryAudioProcessing;
         break;
     case None:
-        return;
+        categoryString = AVAudioSessionCategoryAmbient;
+        break;
     }
 
     NSError *error = nil;