From ba4ea364f38b602273524e8d559d97692cce0c6e Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 3 Jan 2020 18:39:58 +0100 Subject: [PATCH] inline --- rowers/templates/embedded_video_mini.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rowers/templates/embedded_video_mini.html b/rowers/templates/embedded_video_mini.html index 3ff231a7..ef286ecc 100644 --- a/rowers/templates/embedded_video_mini.html +++ b/rowers/templates/embedded_video_mini.html @@ -153,6 +153,8 @@ function copyText() { var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; + tag.removeAttribute('allowfullscreen'); + tag.setAttribute('donotallowfullscreen','') var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); @@ -179,6 +181,8 @@ function copyText() { height: '315', width: '560', modestbranding: '1', + playsinline: '0', + allowfullscreen: '0', videoId: '{{ video_id }}', events: { 'onReady': onPlayerReady,