Commit c9549c76 authored by 刘梦焕's avatar 刘梦焕

fix: 萤石协议视频配置宽高

parent 2125f9e9
...@@ -26,8 +26,6 @@ const Demo = () => { ...@@ -26,8 +26,6 @@ const Demo = () => {
dataRate: 'Sub', // Main 主码流 Sub 子码流 dataRate: 'Sub', // Main 主码流 Sub 子码流
pandavmsHost: `ws://192.168.8.30:7000/`, // pandavms后端主机地址 eg: ws://172.16.19.19:8080/ pandavmsHost: `ws://192.168.8.30:7000/`, // pandavms后端主机地址 eg: ws://172.16.19.19:8080/
address: '236644034', address: '236644034',
width: 1000,
height: 500,
}, },
{ {
id: '339B3B67-A7AE-45B2-89B7-227619A88A01', // 398993BB-A795-4237-BE75-B6A7EC9D675 id: '339B3B67-A7AE-45B2-89B7-227619A88A01', // 398993BB-A795-4237-BE75-B6A7EC9D675
...@@ -38,8 +36,6 @@ const Demo = () => { ...@@ -38,8 +36,6 @@ const Demo = () => {
dataRate: 'Sub', // Main 主码流 Sub 子码流 dataRate: 'Sub', // Main 主码流 Sub 子码流
pandavmsHost: `ws://192.168.8.30:7000/`, // pandavms后端主机地址 eg: ws://172.16.19.19:8080/ pandavmsHost: `ws://192.168.8.30:7000/`, // pandavms后端主机地址 eg: ws://172.16.19.19:8080/
address: '236644034', address: '236644034',
width: 1000,
height: 500,
}, },
{ {
id: '972DF430-2E69-4960-86E2-C1D336B85280', // 398993BB-A795-4237-BE75-B6A7EC9D675 id: '972DF430-2E69-4960-86E2-C1D336B85280', // 398993BB-A795-4237-BE75-B6A7EC9D675
...@@ -50,8 +46,6 @@ const Demo = () => { ...@@ -50,8 +46,6 @@ const Demo = () => {
dataRate: 'Sub', // Main 主码流 Sub 子码流 dataRate: 'Sub', // Main 主码流 Sub 子码流
pandavmsHost: `ws://192.168.8.30:7000/`, // pandavms后端主机地址 eg: ws://172.16.19.19:8080/ pandavmsHost: `ws://192.168.8.30:7000/`, // pandavms后端主机地址 eg: ws://172.16.19.19:8080/
address: '236644034', address: '236644034',
width: 1000,
height: 500,
}, },
]; ];
......
...@@ -68,7 +68,10 @@ const VideoSliderModal = (props) => { ...@@ -68,7 +68,10 @@ const VideoSliderModal = (props) => {
<div className={styles['swiper-wrap']}> <div className={styles['swiper-wrap']}>
<div className={styles['swiper-title']}>{item.name}</div> <div className={styles['swiper-title']}>{item.name}</div>
<div className={styles['swiper-content']}> <div className={styles['swiper-content']}>
<VmsVideo VideoInfo={item} JessibucaObj={JessibucaObj} /> <VmsVideo
VideoInfo={{ ...item, width: modalInfo?.width ?? 1000, height: 500 }}
JessibucaObj={JessibucaObj}
/>
</div> </div>
</div> </div>
</SwiperSlide> </SwiperSlide>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment