aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorShakeel Mohamed <smohamed@splunk.com>2016-03-12 14:05:33 -0800
committerShakeel Mohamed <smohamed@splunk.com>2016-03-12 14:05:33 -0800
commitc636f0e69e7db7f2aa38df882f10dfc4ad15a2a3 (patch)
tree1ca3fe2dffd2f09d5d8325f55d6a92d5d30555e2 /src/js/plyr.js
parent193103cb2d84a2c99f0d434ae0d7a103fc57161b (diff)
downloadplyr-c636f0e69e7db7f2aa38df882f10dfc4ad15a2a3.tar.lz
plyr-c636f0e69e7db7f2aa38df882f10dfc4ad15a2a3.tar.xz
plyr-c636f0e69e7db7f2aa38df882f10dfc4ad15a2a3.zip
Dynamically set YouTube autoplay from config
The YouTube autoplay doesn't work without this change.
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js2
1 files changed, 1 insertions, 1 deletions
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,