aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-04-12 20:18:17 +1000
committerSam Potts <sam@potts.es>2019-04-12 20:18:17 +1000
commite9367ee85e443b28b003e3ff79ac0e2445879aa4 (patch)
tree7a7b6953f1cfcfc288d50d4e874f08cc5fab5930 /src/js/plyr.js
parentd9b7928ce63f57f4b6675d497c05de8835531e06 (diff)
downloadplyr-e9367ee85e443b28b003e3ff79ac0e2445879aa4.tar.lz
plyr-e9367ee85e443b28b003e3ff79ac0e2445879aa4.tar.xz
plyr-e9367ee85e443b28b003e3ff79ac0e2445879aa4.zip
Fix setting initial speed (fixes #1408)
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 3b169321..d67fae83 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -678,7 +678,9 @@ class Plyr {
this.config.speed.selected = speed;
// Set media speed
- this.media.playbackRate = speed;
+ setTimeout(() => {
+ this.media.playbackRate = speed;
+ }, 0);
}
/**