diff --git a/rowers/templates/embedded_video_mini.html b/rowers/templates/embedded_video_mini.html index 7eaae2ad..466cb5e9 100644 --- a/rowers/templates/embedded_video_mini.html +++ b/rowers/templates/embedded_video_mini.html @@ -155,6 +155,7 @@ function copyText() { tag.src = "https://www.youtube.com/iframe_api"; tag.removeAttribute('allowfullscreen'); tag.setAttribute('donotallowfullscreen','') + tag.setAttribute('playsinline','1') var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); @@ -181,8 +182,7 @@ function copyText() { height: '315', width: '560', modestbranding: '1', - playsinline: '1', - allowfullscreen: '0', + playerVars: {'playsinline':'1'}, videoId: '{{ video_id }}', events: { 'onReady': onPlayerReady,