Title: [245539] trunk/Source/WebCore
Revision
245539
Author
[email protected]
Date
2019-05-20 16:06:43 -0700 (Mon, 20 May 2019)

Log Message

Provide an explicit UIModalPresentation style when creating an AVPlayerViewController for fullscreen.
https://bugs.webkit.org/show_bug.cgi?id=198052

Reviewed by Tim Horton.

Make sure AVPlayerViewController has an "overFullScreen" modal style.

* platform/ios/VideoFullscreenInterfaceAVKit.mm:
(-[WebAVPlayerViewController initWithFullscreenInterface:]):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (245538 => 245539)


--- trunk/Source/WebCore/ChangeLog	2019-05-20 22:53:03 UTC (rev 245538)
+++ trunk/Source/WebCore/ChangeLog	2019-05-20 23:06:43 UTC (rev 245539)
@@ -1,3 +1,15 @@
+2019-05-20  Jer Noble  <[email protected]>
+
+        Provide an explicit UIModalPresentation style when creating an AVPlayerViewController for fullscreen.
+        https://bugs.webkit.org/show_bug.cgi?id=198052
+
+        Reviewed by Tim Horton.
+
+        Make sure AVPlayerViewController has an "overFullScreen" modal style.
+
+        * platform/ios/VideoFullscreenInterfaceAVKit.mm:
+        (-[WebAVPlayerViewController initWithFullscreenInterface:]):
+
 2019-05-20  Chris Dumez  <[email protected]>
 
         Fix security check in ScriptController::canAccessFromCurrentOrigin()

Modified: trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm (245538 => 245539)


--- trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm	2019-05-20 22:53:03 UTC (rev 245538)
+++ trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm	2019-05-20 23:06:43 UTC (rev 245539)
@@ -551,6 +551,7 @@
 
     _fullscreenInterface = interface;
     _avPlayerViewController = adoptNS([allocAVPlayerViewControllerInstance() initWithPlayerLayerView:interface->playerLayerView()]);
+    _avPlayerViewController.get().modalPresentationStyle = UIModalPresentationOverFullScreen;
 #if PLATFORM(WATCHOS)
     _avPlayerViewController.get().delegate = self;
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to