From 9ca7b861a925ec0412006f7cc926bfa1859a0daa Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 12 Apr 2019 12:14:12 +1000 Subject: [PATCH] Autoplay tweak for HTML5 --- src/js/plyr.js | 4 ++-- 1 file 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