Merge branch 'develop' of https://github.com/sampotts/plyr into develop

This commit is contained in:
Sam Potts
2019-01-08 23:34:59 +11:00
5 changed files with 11 additions and 5 deletions

View File

@ -153,6 +153,7 @@ const youtube = {
// https://developers.google.com/youtube/iframe_api_reference
player.embed = new window.YT.Player(id, {
videoId,
host: player.config.noCookie ? 'https://www.youtube-nocookie.com' : undefined,
playerVars: {
autoplay: player.config.autoplay ? 1 : 0, // Autoplay
hl: player.config.hl, // iframe interface language