chore: iOS video preview hack

This commit is contained in:
Tristan Yang
2025-08-11 16:56:44 +08:00
parent bbc42d7055
commit f7e05dfbbb
+2 -1
View File
@@ -81,7 +81,8 @@ const VideoMessage = ({ url, name, size, download }: Props) => {
controls={canPlay}
className="absolute left-0 top-0 w-full h-full object-contain z-10"
>
<source src={url} type="video/mp4"></source>
{/* iOS cover hack */}
<source src={`${url}#t=0.001`} type="video/mp4"></source>
</video>
</div>
);