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 loaded = false
|
||||||
|
|
||||||
var video = document.createElement('video')
|
var video = document.createElement('video')
|
||||||
|
video.playsinline = true
|
||||||
video.classList.add('player')
|
video.classList.add('player')
|
||||||
video.muted = true
|
video.muted = true
|
||||||
setVideoSrc(video, `${baseURL}/${config.item}/480p.webm`)
|
setVideoSrc(video, `${baseURL}/${config.item}/480p.webm`)
|
||||||
|
@ -296,6 +297,7 @@ function loadEdit(config) {
|
||||||
var loaded = false
|
var loaded = false
|
||||||
|
|
||||||
var video = document.createElement('video')
|
var video = document.createElement('video')
|
||||||
|
video.playsinline = true
|
||||||
video.classList.add('player')
|
video.classList.add('player')
|
||||||
video.muted = true
|
video.muted = true
|
||||||
video.addEventListener('timeupdate', timeupdate)
|
video.addEventListener('timeupdate', timeupdate)
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<div class="details">
|
<div class="details">
|
||||||
{{ film.data.date }}, {{ film.duration }}
|
{{ film.data.date }}, {{ film.duration }}
|
||||||
</div>
|
</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>
|
<p>{{ film.data.summary|safe }}</p>
|
||||||
<br>
|
<br>
|
||||||
<p>{{ film.data.summary_zh|safe }}</p>
|
<p>{{ film.data.summary_zh|safe }}</p>
|
||||||
|
|
Loading…
Reference in a new issue