Commit 1b859064 authored by 程恺文's avatar 程恺文

添加宽高配置

parent 6db86a42
......@@ -37,16 +37,18 @@ const Demo1 = (props) => {
// protocol: '萤石EZOPEN',
//};
let VideoParam ={
id: "11F102BC-CE03-4E32-AE60-F297934DFE3F", // 398993BB-A795-4237-BE75-B6A7EC9D675
name: "琼海电信小区", // 设备名称
protocol: "萤石云HTTP-FLV", // 萤石EZOPE 萤石HTTP-FLV RTSP GB28181
username: "6c44c8e92d1c4d75a9818756025df550",
password: "78b7dc88f9f4bf19c2b1aabfdd995244",
let VideoParam = {
id: '11F102BC-CE03-4E32-AE60-F297934DFE3F', // 398993BB-A795-4237-BE75-B6A7EC9D675
name: '琼海电信小区', // 设备名称
protocol: '萤石云HTTP-FLV', // 萤石EZOPE 萤石HTTP-FLV RTSP GB28181
username: '6c44c8e92d1c4d75a9818756025df550',
password: '78b7dc88f9f4bf19c2b1aabfdd995244',
dataRate: 'Sub', // Main 主码流 Sub 子码流
pandavmsHost: `ws://192.168.8.27:9876/`, // pandavms后端主机地址 eg: ws://172.16.19.19:8080/
address: "236644034",
}
address: '236644034',
width:952,
height:500,
};
/* {
id: '398993BB-A795-4237-BE75-B6A7EC9D675', // 398993BB-A795-4237-BE75-B6A7EC9D675
......
......@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-04-26 16:32:17
* @LastEditTime: 2023-05-16 10:14:40
* @FilePath: \wisdom-components\packages\base-components\VmsVideo\src\index.jsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -67,6 +67,8 @@ const Video = (props, ref) => {
url: `ezopen://open.ys7.com/${VideoInfo.address}/1.hd.live`,
templete: 'simple',
footer: ['talk', 'broadcast', 'hd', 'fullScreen'],
width:VideoInfo.width||952,
height:VideoInfo.height||500
});
PlayersA.pause = PlayersA.stop;
......@@ -89,9 +91,10 @@ const Video = (props, ref) => {
const CommonPath = window?.globalConfig?.hasGateWay ? 'PandaCore/GateWay/Video/' : '';
VideoInfo.url = VideoInfo.useFullUrl
? VideoInfo.fullUrl
: (VideoInfo.pandavmsHost||'ws://'+location.host+'/') + (VideoInfo.gateway
? CommonPath
: '') + 'jessica/' + VideoInfo.id;
: (VideoInfo.pandavmsHost || 'ws://' + location.host + '/') +
(VideoInfo.gateway ? CommonPath : '') +
'jessica/' +
VideoInfo.id;
let operateBtns = {
fullscreen: true,
screenshot: true,
......
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