diff options
Diffstat (limited to 'youtube/static/js/plyr-start.js')
-rw-r--r-- | youtube/static/js/plyr-start.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube/static/js/plyr-start.js b/youtube/static/js/plyr-start.js index d3a6913..d9fde90 100644 --- a/youtube/static/js/plyr-start.js +++ b/youtube/static/js/plyr-start.js @@ -14,6 +14,9 @@ captionsActive = false; } + // AutoPlay + let autoplayActive = data.settings.autoplay_videos === true ? true : false; + let qualityOptions = []; let qualityDefault; for (let src of data['uni_sources']) { @@ -72,6 +75,7 @@ }); const player = new Plyr(document.getElementById('js-video-player'), { + autoplay: autoplayActive, disableContextMenu: false, captions: { active: captionsActive, |