Skip to content

Commit a5405ff

Browse files
committed
fix video control
1 parent 4f15add commit a5405ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/BaseVideo.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ const BaseVideo = ({ src, className = "" ,style={}}: BaseVideoProps) => {
1515
<video
1616
src={fullSrc}
1717
className={className}
18-
style={style}
18+
style={{
19+
...style,
20+
pointerEvents: "none",
21+
}}
1922
autoPlay
2023
muted
2124
loop
2225
playsInline
26+
controls={false}
27+
disablePictureInPicture
28+
controlsList="nodownload nofullscreen noremoteplayback"
2329
/>
2430
)
2531
}

0 commit comments

Comments
 (0)