From b054ac083f0a009aeb786aa0ddace7fc2588afa9 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 3 Jan 2020 19:27:49 +0100 Subject: [PATCH 1/2] playsinline? --- rowers/templates/embedded_video_mini.html | 1 + 1 file changed, 1 insertion(+) diff --git a/rowers/templates/embedded_video_mini.html b/rowers/templates/embedded_video_mini.html index 7eaae2ad..f3a4f22c 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); From bd37696ed5214fcefd3e5c5349c91536fb96a1b9 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 3 Jan 2020 19:35:43 +0100 Subject: [PATCH 2/2] playsinline --- rowers/templates/embedded_video_mini.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rowers/templates/embedded_video_mini.html b/rowers/templates/embedded_video_mini.html index f3a4f22c..466cb5e9 100644 --- a/rowers/templates/embedded_video_mini.html +++ b/rowers/templates/embedded_video_mini.html @@ -182,8 +182,7 @@ function copyText() { height: '315', width: '560', modestbranding: '1', - playsinline: '1', - allowfullscreen: '0', + playerVars: {'playsinline':'1'}, videoId: '{{ video_id }}', events: { 'onReady': onPlayerReady,