LifeSim / src /components /business /video-player.tsx
jbilcke-hf's picture
jbilcke-hf HF Staff
various improvements
bf6568f
raw
history blame
471 Bytes
"use client"
export const VideoPlayer = ({ url }: { url?: string }) => {
if (!url) {
return <div className="flex w-full h-screen items-center justify-center text-center">
<div>Rendering first scene (might take ~1 min)</div>
</div>
}
return (
<div className="w-full py-8 px-2">
<video
src={url}
muted
autoPlay
loop
className="w-full rounded-md overflow-hidden"
/>
</div>
)
}