Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJunhyeok369 committed Feb 16, 2024
2 parents 1948f20 + a756f66 commit 6405cc4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pages/component/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLVideoElement>(null);

const handleVideoClick = () => {
Expand Down Expand Up @@ -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
></video>
<div className="bg-gradient-video w-full h-full absolute top-0 left-0"></div>
Expand Down

0 comments on commit 6405cc4

Please sign in to comment.