Dynamically set YouTube autoplay from config
The YouTube autoplay doesn't work without this change.
This commit is contained in:
4
dist/plyr.js
vendored
4
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -1438,7 +1438,7 @@
|
|||||||
plyr.embed = new YT.Player(container.id, {
|
plyr.embed = new YT.Player(container.id, {
|
||||||
videoId: videoId,
|
videoId: videoId,
|
||||||
playerVars: {
|
playerVars: {
|
||||||
autoplay: 0,
|
autoplay: plyr.autoplay ? 1 : 0,
|
||||||
controls: (plyr.supported.full ? 0 : 1),
|
controls: (plyr.supported.full ? 0 : 1),
|
||||||
rel: 0,
|
rel: 0,
|
||||||
showinfo: 0,
|
showinfo: 0,
|
||||||
|
Reference in New Issue
Block a user