From f946b6e265fa35ad44bb5619b712d8f0e281e9a7 Mon Sep 17 00:00:00 2001 From: shinya Date: Thu, 3 Jul 2025 18:42:54 +0800 Subject: [PATCH] feat: use native seek button style --- src/app/play/page.tsx | 68 ++++++++++++------------------------------- 1 file changed, 18 insertions(+), 50 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 3f6ac30..a1140eb 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -8,8 +8,13 @@ import { isHLSProvider, MediaPlayer, MediaProvider, + SeekButton, } from '@vidstack/react'; -import { AirPlayIcon } from '@vidstack/react/icons'; +import { + AirPlayIcon, + SeekBackward10Icon, + SeekForward10Icon, +} from '@vidstack/react/icons'; import { defaultLayoutIcons, DefaultVideoLayout, @@ -1389,34 +1394,6 @@ function PlayPageClient() { airPlayButton: null, // 隐藏默认 AirPlay 按钮 beforeCurrentTime: ( <> - {/* 快进 10 秒按钮 - 根据播放器尺寸决定显隐 */} - {showSkipButtons && ( - - )} - {totalEpisodes > 1 && ( // 下一集按钮放在时间显示前 + + + + )} + + ), + afterPlayButton: ( + <> + {showSkipButtons && ( + + + )} ),