aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-08 22:29:49 +0000
committerGitHub <noreply@github.com>2020-02-08 22:29:49 +0000
commitb5456e1de747b40b82a80a724f6724ba438ab24d (patch)
tree3eb871b43f297d13eab93f3241bf2f007737e7da /src/js/controls.js
parent976eebc2a20726c687c0e5a42bd63e5b804fba53 (diff)
parent299f712cc9363b1f8d26e4e049aabd9c25dcb9d7 (diff)
downloadplyr-b5456e1de747b40b82a80a724f6724ba438ab24d.tar.lz
plyr-b5456e1de747b40b82a80a724f6724ba438ab24d.tar.xz
plyr-b5456e1de747b40b82a80a724f6724ba438ab24d.zip
Merge pull request #1671 from ydylla/improve-speed-options
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 bfe1b61f..0b66d8f6 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];
}