Fix for Slow loading videos not autoplaying
This commit is contained in:
parent
4eaa1a72b5
commit
9076d054b9
@ -308,7 +308,7 @@ class Plyr {
|
|||||||
|
|
||||||
// Autoplay if required
|
// Autoplay if required
|
||||||
if (this.isHTML5 && this.config.autoplay) {
|
if (this.isHTML5 && this.config.autoplay) {
|
||||||
this.on('canplay', () => silencePromise(this.play()));
|
this.once('canplay', () => silencePromise(this.play()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user