From 42e7dfb980024d9e7a0508bc0697a5bc8d8c844a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 22 Oct 2021 11:32:47 +0100 Subject: [PATCH] iOS wants playsinline --- app/static/js/ascroll.js | 2 ++ app/templates/film.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index af3beb8..cd3f66a 100644 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -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) diff --git a/app/templates/film.html b/app/templates/film.html index 192c48e..6bcf7b5 100644 --- a/app/templates/film.html +++ b/app/templates/film.html @@ -25,7 +25,7 @@
{{ film.data.date }}, {{ film.duration }}
- +

{{ film.data.summary|safe }}


{{ film.data.summary_zh|safe }}