aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
authorydylla <ydylla@gmail.com>2020-01-29 23:02:35 +0100
committerydylla <ydylla@gmail.com>2020-02-01 16:37:38 +0100
commit299f712cc9363b1f8d26e4e049aabd9c25dcb9d7 (patch)
tree386084be2304582f273b74448abe9a6ba77f5efc /src/js/controls.js
parent8b9521d5a5d34bf81c57e901286ac325da2c1fc0 (diff)
downloadplyr-299f712cc9363b1f8d26e4e049aabd9c25dcb9d7.tar.lz
plyr-299f712cc9363b1f8d26e4e049aabd9c25dcb9d7.tar.xz
plyr-299f712cc9363b1f8d26e4e049aabd9c25dcb9d7.zip
actually use the configured speed options
Diffstat (limited to 'src/js/controls.js')
-rw-r--r--src/js/controls.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 15c82716..33d5724b 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -1056,6 +1056,8 @@ const controls = {
// Set the speed options
if (is.array(options)) {
this.options.speed = options;
+ } else if (is.array(this.config.speed.options)) {
+ this.options.speed = this.config.speed.options;
} else if (this.isHTML5 || this.isVimeo) {
this.options.speed = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];
}