diff options
author | PortableProgrammer <[email protected]> | 2025-01-19 23:48:56 +0000 |
---|---|---|
committer | PortableProgrammer <[email protected]> | 2025-01-19 23:48:56 +0000 |
commit | 6cd1bd918531de368605447c3f9a1495cd8dbe1c (patch) | |
tree | ea05c30aa349c2df316ecb90379be48dae7f22fe | |
parent | 24af351b986717ec74a0e63c8844a574fae82b5b (diff) |
Tweak `src`/`poster` order on videos for more consistent behavior.
-rw-r--r-- | src/mixins/post.pug | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mixins/post.pug b/src/mixins/post.pug index 8210ad8..9021f93 100644 --- a/src/mixins/post.pug +++ b/src/mixins/post.pug | |||
@@ -47,9 +47,7 @@ mixin post(p, currentUrl) | |||
47 | img(src=url onclick=onclick) | 47 | img(src=url onclick=onclick) |
48 | else if isPostVideo(p) | 48 | else if isPostVideo(p) |
49 | - var decodedVideos = decodePostVideoUrls(p) | 49 | - var decodedVideos = decodePostVideoUrls(p) |
50 | video(data-dashjs-player="" playsinline="" autoplay="" muted="" onclick=`toggleDetails('${p.id}')` poster=decodedVideos[4] width="100px" height="100px") | 50 | video(data-dashjs-player="" playsinline="" autoplay="" muted="" onclick=`toggleDetails('${p.id}')` src=decodedVideos[3] poster=decodedVideos[4] width="100px" height="100px") |
51 | // Scrubber | ||
52 | source(src=decodedVideos[3]) | ||
53 | else if isPostLink(p) | 51 | else if isPostLink(p) |
54 | a(href=p.url) | 52 | a(href=p.url) |
55 | | ↗ | 53 | | ↗ |
@@ -74,7 +72,7 @@ mixin post(p, currentUrl) | |||
74 | img(src=p.url loading="lazy") | 72 | img(src=p.url loading="lazy") |
75 | else if isPostVideo(p) | 73 | else if isPostVideo(p) |
76 | - var decodedVideos = decodePostVideoUrls(p) | 74 | - var decodedVideos = decodePostVideoUrls(p) |
77 | video(data-dashjs-player="" playsinline="" controls="" muted="" preload="metadata" poster=decodedVideos[4] src=decodedVideos[1]) | 75 | video(data-dashjs-player="" playsinline="" controls="" muted="" preload="metadata" src=decodedVideos[1] poster=decodedVideos[4]) |
78 | else if isPostLink(p) | 76 | else if isPostLink(p) |
79 | a(href=p.url) | 77 | a(href=p.url) |
80 | | #{p.domain} ↗ | 78 | | #{p.domain} ↗ |