Bug 858025 - Playback is maintained after seeking or pausing media; r=padenot
authorSankha Narayan Guria <sankha93@gmail.com>
Tue, 16 Jul 2013 20:43:25 +0530
changeset 139236 03d0dc9e1cb8b7e2c24c543dfdf412008a1bed23
parent 139235 bb14995b324100fea784e1f955b75d1efb16ce52
child 139237 868ce514bba712fda6578a692505ad5cb938edb7
push id24983
push userryanvm@gmail.com
push dateSat, 20 Jul 2013 00:51:06 +0000
treeherdermozilla-central@6030c759a502 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs858025
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 858025 - Playback is maintained after seeking or pausing media; r=padenot
toolkit/content/widgets/videocontrols.xml
--- a/toolkit/content/widgets/videocontrols.xml
+++ b/toolkit/content/widgets/videocontrols.xml
@@ -168,19 +168,21 @@
         <parameter name="isDragging"/>
           <body>
           <![CDATA[
             if (this.type == "scrubber") {
                 this.Utils.log("--- dragStateChanged: " + isDragging + " ---");
                 this.isDragging = isDragging;
                 if (isDragging) {
                     this.wasPausedBeforeDrag = this.Utils.video.paused;
+                    this.previousPlaybackRate = this.Utils.video.playbackRate;
                     this.Utils.video.pause();
                 } else if (!this.wasPausedBeforeDrag) {
                     // After the drag ends, resume playing.
+                    this.Utils.video.playbackRate = this.previousPlaybackRate;
                     this.Utils.video.play();
                 }
             }
           ]]>
           </body>
       </method>
 
       </implementation>