From 22f58bce16899b90df382b9f0f305dddc97a8b93 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Sun, 23 Feb 2025 21:42:49 +0800 Subject: [PATCH] add --- .../components/presentation/video-player/VideoPlayer.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/presentation/video-player/VideoPlayer.tsx b/apps/web/src/components/presentation/video-player/VideoPlayer.tsx index 4a86f4b..21fef25 100755 --- a/apps/web/src/components/presentation/video-player/VideoPlayer.tsx +++ b/apps/web/src/components/presentation/video-player/VideoPlayer.tsx @@ -55,6 +55,7 @@ export function VideoPlayer({ src, poster, onError, + }: { src: string; poster?: string; @@ -82,6 +83,10 @@ export function VideoPlayer({ const progressRef = useRef(null); const [isSpeedOpen, setIsSpeedOpen] = useState(false); const [isBrightnessOpen, setIsBrightnessOpen] = useState(false); + + const handleClick = (event: React.MouseEvent) => { + event.stopPropagation(); // 阻止事件向上传递 + }; return ( - +
+ +
); }