more ways of setting playsinline
This commit is contained in:
parent
d796b7da63
commit
42adb2fdaf
1 changed files with 3 additions and 1 deletions
|
@ -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`)
|
||||||
|
|
Loading…
Reference in a new issue