Skip to content

Commit b393236

Browse files
committed
问题修复
1 parent 5ab1d1b commit b393236

3 files changed

Lines changed: 9 additions & 17 deletions

File tree

public/feixun.svg

Lines changed: 3 additions & 16 deletions
Loading

src/components/DemoVideos.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ const DemoVideos = () => {
4848
}
4949
>
5050
<video
51-
className="w-full h-full object-contain bg-transparent"
51+
className="w-full h-full object-cover bg-transparent"
5252
controls
5353
preload={index === 0 ? "auto" : "metadata"}
54+
poster={item.poster}
5455
playsInline
5556
>
5657
<source src={item.src} type="video/webm" />

src/lib/demoVideos.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export type DemoVideoItem = {
44
id: string;
55
titleKey: string;
66
src: string;
7+
poster: string;
78
};
89

910
/** 与 fluxmq-doc static/video 及《演示视频》文档一致 */
@@ -12,15 +13,18 @@ export const FLUXMQ_DEMO_VIDEOS: DemoVideoItem[] = [
1213
id: "overview",
1314
titleKey: "demos.items.overview",
1415
src: `${FLUXMQ_DOC_ORIGIN}/video/overview.webm`,
16+
poster: "/demo-posters/overview.svg",
1517
},
1618
{
1719
id: "rule-engine-datasource",
1820
titleKey: "demos.items.datasource",
1921
src: `${FLUXMQ_DOC_ORIGIN}/video/rule-engine-datasource.webm`,
22+
poster: "/demo-posters/rule-engine-datasource.svg",
2023
},
2124
{
2225
id: "instruct",
2326
titleKey: "demos.items.instruct",
2427
src: `${FLUXMQ_DOC_ORIGIN}/video/instruct.webm`,
28+
poster: "/demo-posters/instruct.svg",
2529
},
2630
];

0 commit comments

Comments
 (0)