From e4352e5becdc87af2ea9003019bd2a5b1a5a870f Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 20 Oct 2021 20:49:20 +0700 Subject: [PATCH] playsinline fix for mobile safari --- tubearchivist/home/templates/home/video.html | 2 +- tubearchivist/static/script.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/templates/home/video.html b/tubearchivist/home/templates/home/video.html index 03a2faa..4ecd070 100644 --- a/tubearchivist/home/templates/home/video.html +++ b/tubearchivist/home/templates/home/video.html @@ -9,7 +9,7 @@
diff --git a/tubearchivist/static/script.js b/tubearchivist/static/script.js index efeed9d..2c8061b 100644 --- a/tubearchivist/static/script.js +++ b/tubearchivist/static/script.js @@ -230,6 +230,7 @@ function createPlayer(button) { videoPlayer.setAttribute('controls', true); videoPlayer.setAttribute('autoplay', true); videoPlayer.setAttribute('width', '100%'); + videoPlayer.setAttribute('playsinline', true); videoPlayer.setAttribute('poster', mediaThumb); playerElement.appendChild(videoPlayer); // title bar