client/posts: thumbnail as video poster

This commit is contained in:
Eva 2023-05-22 09:33:18 +02:00
parent 5877ad9463
commit 7405593101

View file

@ -19,6 +19,7 @@
loop: (ctx.post.flags || []).includes('loop'), loop: (ctx.post.flags || []).includes('loop'),
playsinline: true, playsinline: true,
autoplay: ctx.autoplay, autoplay: ctx.autoplay,
poster: ctx.post.thumbnailUrl,
}, },
ctx.makeElement('source', { ctx.makeElement('source', {
type: ctx.post.mimeType, type: ctx.post.mimeType,