client/posts: thumbnail as video poster
This commit is contained in:
parent
5877ad9463
commit
7405593101
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Reference in a new issue