From d72d0e6457ab81d1b8171615a48e6e46c82b10e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Fri, 11 Jul 2025 16:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/video-grid-layout.tsx | 2 +- components/video-screen-layout.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/video-grid-layout.tsx b/components/video-grid-layout.tsx index f91fba7..36f2963 100644 --- a/components/video-grid-layout.tsx +++ b/components/video-grid-layout.tsx @@ -111,7 +111,7 @@ function VideoGridLayoutComponent({ videos, onEdit, onDelete }: VideoGridLayoutP loop muted={isMuted[video.id] !== false} // 默认静音,除非明确设置为false playsInline - preload="auto" + preload="none" poster={`${video.url}?vframe/jpg/offset/1`} onLoadedData={() => { // 设置默认音量 diff --git a/components/video-screen-layout.tsx b/components/video-screen-layout.tsx index d2e8f5d..786661f 100644 --- a/components/video-screen-layout.tsx +++ b/components/video-screen-layout.tsx @@ -197,7 +197,7 @@ function VideoScreenLayoutComponent({ videos }: VideoScreenLayoutProps) { loop muted={index === currentIndex ? isMuted : true} // 只有当前视频受状态控制 playsInline - preload="auto" + preload={`${index === currentIndex ? 'auto' : 'none'}`} poster={`${video.url}?vframe/jpg/offset/1`} onLoadedData={() => { if (index === currentIndex && videoRefs.current[index]) {