Skip to content

Commit f7bf043

Browse files
committed
fix: video 태그 수정해보기
1 parent 20ff6ea commit f7bf043

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/routes/mission/$missionId/-components/MissionDetailHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function MissionDetailHeader({
1818
navigate({ to: "/mission" });
1919
}
2020
if (type === "mypage") {
21-
navigate({ to: "/mypage" });
21+
navigate({ to: "/my" });
2222
}
2323
}}
2424
>

src/routes/mission/$missionId/-components/MissionNotTriedReviewing.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,22 @@ export default function MissionNotTriedReviewing({
3030

3131
<div className="max-w-[80vw] aspect-[3/4] bg-neutral-800 border-8 border-neutral-100 rounded-[40px] overflow-hidden">
3232
<video
33-
src={videoUrl}
3433
className="w-full h-full object-cover"
35-
controls
3634
playsInline
37-
>
38-
<track kind="captions" />
39-
</video>
35+
muted
36+
loop
37+
autoPlay
38+
src={videoUrl}
39+
onClick={(event) => {
40+
const video = event.currentTarget as HTMLVideoElement;
41+
const isPaused = video.paused;
42+
if (isPaused) {
43+
void video.play();
44+
} else {
45+
video.pause();
46+
}
47+
}}
48+
/>
4049
</div>
4150
</div>
4251

0 commit comments

Comments
 (0)