Title: [233535] trunk/Source/WebCore
Revision
233535
Author
[email protected]
Date
2018-07-05 12:42:29 -0700 (Thu, 05 Jul 2018)

Log Message

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.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (233534 => 233535)


--- trunk/Source/WebCore/ChangeLog	2018-07-05 19:39:44 UTC (rev 233534)
+++ trunk/Source/WebCore/ChangeLog	2018-07-05 19:42:29 UTC (rev 233535)
@@ -1,3 +1,15 @@
+2018-07-05  Eric Carlson  <[email protected]>
+
+        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  <[email protected]>
 
         Use ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING) in ScrollAnimatorMac.mm

Modified: trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm (233534 => 233535)


--- trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm	2018-07-05 19:39:44 UTC (rev 233534)
+++ trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm	2018-07-05 19:42:29 UTC (rev 233535)
@@ -135,7 +135,8 @@
         categoryString = AVAudioSessionCategoryAudioProcessing;
         break;
     case None:
-        return;
+        categoryString = AVAudioSessionCategoryAmbient;
+        break;
     }
 
     NSError *error = nil;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to