diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/plyr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 94bd819c..3373be14 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -308,7 +308,7 @@ class Plyr { // Autoplay if required 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 |