aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-04-12 12:14:12 +1000
committerSam Potts <sam@potts.es>2019-04-12 12:14:12 +1000
commit9ca7b861a925ec0412006f7cc926bfa1859a0daa (patch)
tree0fe9a1e98a636574658862761b2b9e453bca0a74 /src
parent2eccf0dd05f1678749a2c10c84e5c2bff03f1435 (diff)
downloadplyr-9ca7b861a925ec0412006f7cc926bfa1859a0daa.tar.lz
plyr-9ca7b861a925ec0412006f7cc926bfa1859a0daa.tar.xz
plyr-9ca7b861a925ec0412006f7cc926bfa1859a0daa.zip
Autoplay tweak for HTML5
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index e28c5da3..c06df984 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -301,8 +301,8 @@ class Plyr {
}
// Autoplay if required
- if (this.config.autoplay) {
- this.play();
+ if (this.isHTML5 && this.config.autoplay) {
+ setTimeout(() => this.play(), 10);
}
// Seek time will be recorded (in listeners.js) so we can prevent hiding controls for a few seconds after seek