Title: [168125] trunk/Source/WebCore
- Revision
- 168125
- Author
- eric.carl...@apple.com
- Date
- 2014-05-01 15:54:40 -0700 (Thu, 01 May 2014)
Log Message
[iOS] audio and video should automatically play to active external device
https://bugs.webkit.org/show_bug.cgi?id=132428
Reviewed by Jer Noble.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer): Set
AVPlayer.usesExternalPlaybackWhileExternalScreenIsActive.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (168124 => 168125)
--- trunk/Source/WebCore/ChangeLog 2014-05-01 22:53:53 UTC (rev 168124)
+++ trunk/Source/WebCore/ChangeLog 2014-05-01 22:54:40 UTC (rev 168125)
@@ -1,3 +1,14 @@
+2014-05-01 Eric Carlson <eric.carl...@apple.com>
+
+ [iOS] audio and video should automatically play to active external device
+ https://bugs.webkit.org/show_bug.cgi?id=132428
+
+ Reviewed by Jer Noble.
+
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer): Set
+ AVPlayer.usesExternalPlaybackWhileExternalScreenIsActive.
+
2014-05-01 David Hyatt <hy...@apple.com>
REGRESSION (r168046): [New Multicolumn] Selection into and out of column-span elements doesn't work
Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (168124 => 168125)
--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2014-05-01 22:53:53 UTC (rev 168124)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2014-05-01 22:54:40 UTC (rev 168125)
@@ -709,6 +709,7 @@
[m_avPlayer.get() addObserver:m_objcObserver.get() forKeyPath:@"rate" options:NSKeyValueObservingOptionNew context:(void *)MediaPlayerAVFoundationObservationContextPlayer];
#if ENABLE(IOS_AIRPLAY)
[m_avPlayer.get() addObserver:m_objcObserver.get() forKeyPath:@"externalPlaybackActive" options:NSKeyValueObservingOptionNew context:(void *)MediaPlayerAVFoundationObservationContextPlayer];
+ [m_avPlayer.get() setUsesExternalPlaybackWhileExternalScreenIsActive:YES];
#endif
#if HAVE(AVFOUNDATION_MEDIA_SELECTION_GROUP) && HAVE(AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes