From 27f18ee5acbe595e73c9b52854a40ffbb7e6bc64 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: Mon, 7 Jul 2025 12:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=86=E9=A2=91=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=80=9F=E5=BA=A6?= 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 | 1 + 2 files changed, 3 insertions(+) diff --git a/components/video-grid-layout.tsx b/components/video-grid-layout.tsx index c8d62a2..f91fba7 100644 --- a/components/video-grid-layout.tsx +++ b/components/video-grid-layout.tsx @@ -111,6 +111,8 @@ function VideoGridLayoutComponent({ videos, onEdit, onDelete }: VideoGridLayoutP loop muted={isMuted[video.id] !== false} // 默认静音,除非明确设置为false playsInline + preload="auto" + poster={`${video.url}?vframe/jpg/offset/1`} onLoadedData={() => { // 设置默认音量 if (videoRefs.current[video.id] && !volume[video.id]) { diff --git a/components/video-screen-layout.tsx b/components/video-screen-layout.tsx index c04016d..00e7c51 100644 --- a/components/video-screen-layout.tsx +++ b/components/video-screen-layout.tsx @@ -171,6 +171,7 @@ function VideoScreenLayoutComponent({ videos }: VideoScreenLayoutProps) { muted={index === currentIndex ? isMuted : true} // 只有当前视频受状态控制 playsInline preload="auto" + poster={`${video.url}?vframe/jpg/offset/1`} onLoadedData={() => { if (index === currentIndex && videoRefs.current[index]) { applyVolumeSettings(videoRefs.current[index]!);