File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" />
Original file line number Diff line number Diff 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] ;
You can’t perform that action at this time.
0 commit comments