From 42adb2fdafcb20890f6acd249a64e7da93248688 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 25 Oct 2021 09:47:29 +0100 Subject: [PATCH] more ways of setting playsinline --- app/static/js/ascroll.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index da6bfbe..d597bf2 100644 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -245,7 +245,9 @@ function renderAnnotations(config) { var video = document.createElement('video') video.classList.add('player') video.playsinline = true - video.attributes['playsinline'] = "" + video.setAttribute('playsinline', 'playsinline') + video.setAttribute('webkit-playsinline', 'webkit-playsinline') + video.WebKitPlaysInline = true video.muted = true if (config.item) { setVideoSrc(video, `${baseURL}/${config.item}/480p.webm`)