diff options
author | Sam Potts <sam@potts.es> | 2020-02-10 18:35:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 18:35:42 +0000 |
commit | 841746210ac6444c2e15395e14856d0d889ffd9c (patch) | |
tree | b7a5a2b41443c0101e1a3a6cc5175cfb8229c440 /src/js/html5.js | |
parent | e50b35d195316a1aee28797de26b3d7b42daa0be (diff) | |
parent | 156abda66adeae369dce9d565e9c0ca21508e557 (diff) | |
download | plyr-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.js | 6 |
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; |