Commit 98c9880d by zubair-arbi

Merge pull request #5596 from edx/zub/bugfix/tnl-537-persistvideospeed

reload video on change speed only if value is '1.0'
parents 3185dc48 4ea6323d
......@@ -397,6 +397,14 @@ function (HTML5Video, Resizer) {
}
);
}
// In Html5 mode if video speed is changed before playing in firefox and
// changed speed is not '1.0' then manually trigger setPlaybackRate method.
// In browsers other than firefox like safari user can set speed to '1.0'
// if its not already set to '1.0' so in that case we don't have to
// call 'setPlaybackRate'
if (this.isHtml5Mode() && newSpeed != '1.0') {
this.videoPlayer.player.setPlaybackRate(newSpeed);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment