From ac303db9e6dceed1211feb42838daf3eb02fe859 Mon Sep 17 00:00:00 2001 From: Eva Date: Mon, 22 May 2023 09:53:41 +0200 Subject: [PATCH] client/posts: display first video frame when available --- client/html/post_content.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/html/post_content.tpl b/client/html/post_content.tpl index fbb8501a..7d3ac7f5 100644 --- a/client/html/post_content.tpl +++ b/client/html/post_content.tpl @@ -19,11 +19,12 @@ loop: (ctx.post.flags || []).includes('loop'), playsinline: true, autoplay: ctx.autoplay, + preload: 'auto', poster: ctx.post.thumbnailUrl, }, ctx.makeElement('source', { type: ctx.post.mimeType, - src: ctx.post.contentUrl, + src: ctx.post.contentUrl + '#t=0.001', }), 'Your browser doesn\'t support HTML5 videos.') %>