Dynamically set YouTube autoplay from config

The YouTube autoplay doesn't work without this
change.
This commit is contained in:
Shakeel Mohamed 2016-03-12 14:05:33 -08:00
parent 193103cb2d
commit c636f0e69e
2 changed files with 3 additions and 3 deletions

4
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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,