Title: [234469] trunk/Source/WebCore
Revision
234469
Author
[email protected]
Date
2018-08-01 13:48:58 -0700 (Wed, 01 Aug 2018)

Log Message

Always use MediaPlayback audio category when playing to AppleTV
https://bugs.webkit.org/show_bug.cgi?id=188230
<rdar://problem/42497809>

Reviewed by Jer Noble.

* platform/audio/cocoa/MediaSessionManagerCocoa.cpp:
(PlatformMediaSessionManager::updateSessionState): Check session.isPlayingToWirelessPlaybackTarget().

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (234468 => 234469)


--- trunk/Source/WebCore/ChangeLog	2018-08-01 20:33:48 UTC (rev 234468)
+++ trunk/Source/WebCore/ChangeLog	2018-08-01 20:48:58 UTC (rev 234469)
@@ -1,3 +1,14 @@
+2018-08-01  Eric Carlson  <[email protected]>
+
+        Always use MediaPlayback audio category when playing to AppleTV
+        https://bugs.webkit.org/show_bug.cgi?id=188230
+        <rdar://problem/42497809>
+
+        Reviewed by Jer Noble.
+
+        * platform/audio/cocoa/MediaSessionManagerCocoa.cpp:
+        (PlatformMediaSessionManager::updateSessionState): Check session.isPlayingToWirelessPlaybackTarget().
+
 2018-08-01  Timothy Hatcher  <[email protected]>
 
         Hardcode some system colors to avoid fingerprinting exposure.

Modified: trunk/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.cpp (234468 => 234469)


--- trunk/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.cpp	2018-08-01 20:33:48 UTC (rev 234468)
+++ trunk/Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.cpp	2018-08-01 20:48:58 UTC (rev 234469)
@@ -72,6 +72,8 @@
             hasWebAudioType = true;
         if ((type == PlatformMediaSession::VideoAudio || type == PlatformMediaSession::Audio) && session.canProduceAudio() && session.state() == PlatformMediaSession::Playing)
             hasAudibleAudioOrVideoMediaType = true;
+        if (session.isPlayingToWirelessPlaybackTarget())
+            hasAudibleAudioOrVideoMediaType = true;
         return (type == PlatformMediaSession::MediaStreamCapturingAudio);
     });
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to