[iOS] Media controls disappear when loading a HLS live stream
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jan 2015 00:31:24 +0000 (00:31 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jan 2015 00:31:24 +0000 (00:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=140792
rdar://problem/19491658

Reviewed by Dean Jackson.

Overload reconnectControls to reconnect the "start playback" button
if the control type has been set to "StartPlaybackButton".

* Modules/mediacontrols/mediaControlsiOS.js:
(ControllerIOS.prototype.reconnectControls):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178969 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js

index 882611141427f7d69b6189c6d747fd911bad952e..8e1c27fa90276e0720d9b05b2b2754c82562d840 100644 (file)
@@ -1,3 +1,17 @@
+2015-01-22  Jer Noble  <jer.noble@apple.com>
+
+        [iOS] Media controls disappear when loading a HLS live stream
+        https://bugs.webkit.org/show_bug.cgi?id=140792
+        rdar://problem/19491658
+
+        Reviewed by Dean Jackson.
+
+        Overload reconnectControls to reconnect the "start playback" button
+        if the control type has been set to "StartPlaybackButton".
+
+        * Modules/mediacontrols/mediaControlsiOS.js:
+        (ControllerIOS.prototype.reconnectControls):
+
 2015-01-22  peavo@outlook.com  <peavo@outlook.com>
 
         [Win] No plugin content on some sites.
index 8255269d752f3e0c86f47c3c61d14cf3113e83b4..91519842d03d0694da18a9b11126ee37c49a13e4 100644 (file)
@@ -204,6 +204,14 @@ ControllerIOS.prototype = {
             this.controls.startPlaybackButton.parentNode.removeChild(this.controls.startPlaybackButton);
     },
 
+    reconnectControls: function()
+    {
+        Controller.prototype.reconnectControls.call(this);
+
+        if (this.controlsType === ControllerIOS.StartPlaybackControls)
+            this.addStartPlaybackControls();
+    },
+
     configureInlineControls: function() {
         this.controls.panel.appendChild(this.controls.playButton);
         this.controls.panel.appendChild(this.controls.statusDisplay);