diff options
author | Sam Potts <sam@potts.es> | 2020-02-10 18:34:05 +0000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-02-10 18:34:05 +0000 |
commit | 1619510dcf9e3ccc1693caa20a173aaf2789e346 (patch) | |
tree | 900d8a12a10ded90a058600ad459d3ed048c3ad1 /src/js/html5.js | |
parent | ff8dedd4ec2235131a630635ec7927c75d0a3c16 (diff) | |
download | plyr-1619510dcf9e3ccc1693caa20a173aaf2789e346.tar.lz plyr-1619510dcf9e3ccc1693caa20a173aaf2789e346.tar.xz plyr-1619510dcf9e3ccc1693caa20a173aaf2789e346.zip |
Speed settings logic improvements
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; |