1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-19 12:15:27 -04:00
2025-05-06 19:07:23 -04:00
parent bea2a55f77
commit a08ec532b3
9 changed files with 93 additions and 34 deletions
+3 -1
View File
@@ -15,16 +15,18 @@ const Video = ({
{...(typeof src === "string" ? { src } : {})}
{...(autoPlay
? {
autoPlay: true,
preload: "auto",
controls: false,
autoPlay: true,
playsInline: true, // safari autoplay workaround
loop: true,
muted: true,
}
: {
autoPlay: false,
preload: "metadata",
controls: true,
playsInline: true,
})}
crossOrigin="anonymous"
className={cn("mx-auto block h-auto max-h-[500px] w-full", className)}