From c636f0e69e7db7f2aa38df882f10dfc4ad15a2a3 Mon Sep 17 00:00:00 2001 From: Shakeel Mohamed Date: Sat, 12 Mar 2016 14:05:33 -0800 Subject: Dynamically set YouTube autoplay from config The YouTube autoplay doesn't work without this change. --- src/js/plyr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/plyr.js b/src/js/plyr.js index 8722b62f..ec1064e8 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -1438,7 +1438,7 @@ plyr.embed = new YT.Player(container.id, { videoId: videoId, playerVars: { - autoplay: 0, + autoplay: plyr.autoplay ? 1 : 0, controls: (plyr.supported.full ? 0 : 1), rel: 0, showinfo: 0, -- cgit v1.2.3