73-video-thumbnails #142

Merged
hodlbod merged 3 commits from priyanshu_bharti/flotilla:73-video-thumbnails into dev 2026-04-08 16:07:12 +00:00
Showing only changes of commit da269b4309 - Show all commits
+5 -1
View File
@@ -42,7 +42,11 @@
<Link {external} {href} class="my-2 block">
<div class="overflow-hidden rounded-box">
{#if url.match(/\.(mov|webm|mp4)$/) || VIDEO_CONTENT_TYPES.includes(fileType)}
<video controls src={url} class="max-h-96 rounded-box object-contain object-center">
<video
controls
src={url}
poster="{url}#t=0.1"
class="max-h-96 rounded-box object-contain object-center">
<track kind="captions" />
</video>
{:else if url.match(/\.(jpe?g|png|gif|webp)$/) || IMAGE_CONTENT_TYPES.includes(fileType)}