aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-10 18:35:42 +0000
committerGitHub <noreply@github.com>2020-02-10 18:35:42 +0000
commit841746210ac6444c2e15395e14856d0d889ffd9c (patch)
treeb7a5a2b41443c0101e1a3a6cc5175cfb8229c440 /src/js/html5.js
parente50b35d195316a1aee28797de26b3d7b42daa0be (diff)
parent156abda66adeae369dce9d565e9c0ca21508e557 (diff)
downloadplyr-841746210ac6444c2e15395e14856d0d889ffd9c.tar.lz
plyr-841746210ac6444c2e15395e14856d0d889ffd9c.tar.xz
plyr-841746210ac6444c2e15395e14856d0d889ffd9c.zip
Merge pull request #1684 from sampotts/develop
v3.5.8
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/html5.js b/src/js/html5.js
index d1e82489..0591a709 100644
--- a/src/js/html5.js
+++ b/src/js/html5.js
@@ -42,13 +42,16 @@ const html5 = {
.filter(Boolean);
},
- extend() {
+ setup() {
if (!this.isHTML5) {
return;
}
const player = this;
+ // Set speed options from config
+ player.options.speed = player.config.speed.options;
+
// Set aspect ratio if fixed
if (!is.empty(this.config.ratio)) {
setAspectRatio.call(player);
@@ -93,7 +96,6 @@ const html5 = {
if (preload !== 'none' || readyState) {
// Restore time
player.once('loadedmetadata', () => {
-
player.speed = playbackRate;
player.currentTime = currentTime;