iOS wants playsinline
This commit is contained in:
parent
5bad648fe0
commit
42e7dfb980
2 changed files with 3 additions and 1 deletions
|
@ -240,6 +240,7 @@ function loadItem(config) {
|
|||
var loaded = false
|
||||
|
||||
var video = document.createElement('video')
|
||||
video.playsinline = true
|
||||
video.classList.add('player')
|
||||
video.muted = true
|
||||
setVideoSrc(video, `${baseURL}/${config.item}/480p.webm`)
|
||||
|
@ -296,6 +297,7 @@ function loadEdit(config) {
|
|||
var loaded = false
|
||||
|
||||
var video = document.createElement('video')
|
||||
video.playsinline = true
|
||||
video.classList.add('player')
|
||||
video.muted = true
|
||||
video.addEventListener('timeupdate', timeupdate)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<div class="details">
|
||||
{{ film.data.date }}, {{ film.duration }}
|
||||
</div>
|
||||
<video src="{{ settings.TIMELINE_PREFIX }}{{ film.padma_id }}/loop.mp4" autoplay loop muted></video>
|
||||
<video src="{{ settings.TIMELINE_PREFIX }}{{ film.padma_id }}/loop.mp4" autoplay loop muted playsinline></video>
|
||||
<p>{{ film.data.summary|safe }}</p>
|
||||
<br>
|
||||
<p>{{ film.data.summary_zh|safe }}</p>
|
||||
|
|
Loading…
Reference in a new issue