diff --git a/src/pages/component/Video.tsx b/src/pages/component/Video.tsx index 79f96a5..7581729 100644 --- a/src/pages/component/Video.tsx +++ b/src/pages/component/Video.tsx @@ -10,7 +10,15 @@ type VideoProps = { grade?: string; }; -const Video = ({ user, place, tags, stars, likes, active }: VideoProps) => { +const Video = ({ + user, + place, + tags, + stars, + likes, + active, + files, +}: VideoProps) => { const videoEl = React.useRef(null); const handleVideoClick = () => { @@ -42,7 +50,7 @@ const Video = ({ user, place, tags, stars, likes, active }: VideoProps) => { className="w-auto h-full object-contain m-auto" ref={videoEl} playsInline - src="/no.mp4" + src={files[0].url} muted >