From 24af351b986717ec74a0e63c8844a574fae82b5b Mon Sep 17 00:00:00 2001 From: PortableProgrammer Date: Thu, 16 Jan 2025 00:51:22 +0000 Subject: Revert to `src` attribute in `video` tags for DashJS. Should work in iOS 18.2+, but does not work in iOS 17 and below. --- src/mixins/post.pug | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/mixins/post.pug b/src/mixins/post.pug index 676b349..8210ad8 100644 --- a/src/mixins/post.pug +++ b/src/mixins/post.pug @@ -47,7 +47,7 @@ mixin post(p, currentUrl) img(src=url onclick=onclick) else if isPostVideo(p) - var decodedVideos = decodePostVideoUrls(p) - video(autoplay="" playsinline="" muted="" data-dashjs-player="" onclick=`toggleDetails('${p.id}')` poster=decodedVideos[4] width="100px" height="100px") + video(data-dashjs-player="" playsinline="" autoplay="" muted="" onclick=`toggleDetails('${p.id}')` poster=decodedVideos[4] width="100px" height="100px") // Scrubber source(src=decodedVideos[3]) else if isPostLink(p) @@ -74,13 +74,7 @@ mixin post(p, currentUrl) img(src=p.url loading="lazy") else if isPostVideo(p) - var decodedVideos = decodePostVideoUrls(p) - video(controls="" muted="" data-dashjs-player="" preload="metadata" playsinline="" poster=decodedVideos[4] objectfit="contain" loading="lazy") - // HLS - source(src=decodedVideos[0]) - // Dash - source(src=decodedVideos[1]) - // Fallback - source(src=decodedVideos[2]) + video(data-dashjs-player="" playsinline="" controls="" muted="" preload="metadata" poster=decodedVideos[4] src=decodedVideos[1]) else if isPostLink(p) a(href=p.url) | #{p.domain} ↗ -- cgit v1.2.3