Autoplay tweak for HTML5

This commit is contained in:
Sam Potts
2019-04-12 12:14:12 +10:00
parent 2eccf0dd05
commit 9ca7b861a9

View File

@ -301,8 +301,8 @@ class Plyr {
} }
// Autoplay if required // Autoplay if required
if (this.config.autoplay) { if (this.isHTML5 && this.config.autoplay) {
this.play(); setTimeout(() => this.play(), 10);
} }
// Seek time will be recorded (in listeners.js) so we can prevent hiding controls for a few seconds after seek // Seek time will be recorded (in listeners.js) so we can prevent hiding controls for a few seconds after seek