Title: [206272] trunk/Source/WebCore
Revision
206272
Author
jer.no...@apple.com
Date
2016-09-22 13:54:56 -0700 (Thu, 22 Sep 2016)

Log Message

Fullscreen controls inoperative in WebKitLegacy web views
https://bugs.webkit.org/show_bug.cgi?id=162374

Reviewed by Eric Carlson.

After r205365, the WebPlaybackSessionInterfaceAVKit was now created after the
WebPlaybackSessionModel which fed it data, so it no longer received the burst of data upon
creation. Instead, it should have always asked the model for its cached data as soon as it
was connected to set up its inital state.

* platform/ios/WebPlaybackSessionInterfaceAVKit.mm:
(WebCore::WebPlaybackSessionInterfaceAVKit::WebPlaybackSessionInterfaceAVKit):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (206271 => 206272)


--- trunk/Source/WebCore/ChangeLog	2016-09-22 20:50:21 UTC (rev 206271)
+++ trunk/Source/WebCore/ChangeLog	2016-09-22 20:54:56 UTC (rev 206272)
@@ -1,3 +1,18 @@
+2016-09-22  Jer Noble  <jer.no...@apple.com>
+
+        Fullscreen controls inoperative in WebKitLegacy web views
+        https://bugs.webkit.org/show_bug.cgi?id=162374
+
+        Reviewed by Eric Carlson.
+
+        After r205365, the WebPlaybackSessionInterfaceAVKit was now created after the
+        WebPlaybackSessionModel which fed it data, so it no longer received the burst of data upon
+        creation. Instead, it should have always asked the model for its cached data as soon as it
+        was connected to set up its inital state.
+
+        * platform/ios/WebPlaybackSessionInterfaceAVKit.mm:
+        (WebCore::WebPlaybackSessionInterfaceAVKit::WebPlaybackSessionInterfaceAVKit):
+
 2016-09-22  Chris Dumez  <cdu...@apple.com>
 
         Fix serialization of HTML void elements when they have children

Modified: trunk/Source/WebCore/platform/ios/WebPlaybackSessionInterfaceAVKit.mm (206271 => 206272)


--- trunk/Source/WebCore/platform/ios/WebPlaybackSessionInterfaceAVKit.mm	2016-09-22 20:50:21 UTC (rev 206271)
+++ trunk/Source/WebCore/platform/ios/WebPlaybackSessionInterfaceAVKit.mm	2016-09-22 20:54:56 UTC (rev 206272)
@@ -54,6 +54,17 @@
     model.addClient(*this);
     [m_playerController setPlaybackSessionInterface:this];
     [m_playerController setDelegate:&model];
+
+    durationChanged(model.duration());
+    currentTimeChanged(model.currentTime(), [[NSProcessInfo processInfo] systemUptime]);
+    bufferedTimeChanged(model.bufferedTime());
+    rateChanged(model.isPlaying(), model.playbackRate());
+    seekableRangesChanged(model.seekableRanges());
+    canPlayFastReverseChanged(model.canPlayFastReverse());
+    audioMediaSelectionOptionsChanged(model.audioMediaSelectionOptions(), model.audioMediaSelectedIndex());
+    legibleMediaSelectionOptionsChanged(model.legibleMediaSelectionOptions(), model.legibleMediaSelectedIndex());
+    externalPlaybackChanged(model.externalPlaybackEnabled(), model.externalPlaybackTargetType(), model.externalPlaybackLocalizedDeviceName());
+    wirelessVideoPlaybackDisabledChanged(model.wirelessVideoPlaybackDisabled());
 }
 
 WebPlaybackSessionInterfaceAVKit::~WebPlaybackSessionInterfaceAVKit()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to