more ways of setting playsinline

This commit is contained in:
j 2021-10-25 09:47:29 +01:00
parent d796b7da63
commit 42adb2fdaf

View file

@ -245,7 +245,9 @@ function renderAnnotations(config) {
var video = document.createElement('video') var video = document.createElement('video')
video.classList.add('player') video.classList.add('player')
video.playsinline = true video.playsinline = true
video.attributes['playsinline'] = "" video.setAttribute('playsinline', 'playsinline')
video.setAttribute('webkit-playsinline', 'webkit-playsinline')
video.WebKitPlaysInline = true
video.muted = true video.muted = true
if (config.item) { if (config.item) {
setVideoSrc(video, `${baseURL}/${config.item}/480p.webm`) setVideoSrc(video, `${baseURL}/${config.item}/480p.webm`)