Commit fe047bce authored by 程恺文's avatar 程恺文

萤石云添加通道号channel

parent b32e0a32
......@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-05-17 09:45:01
* @LastEditTime: 2023-05-17 09:57:05
* @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
*/
......@@ -38,7 +38,7 @@ const Video = (props, ref) => {
const Players = useRef(null);
const { VideoInfo, JessibucaObj, gateway } = props;
let baseUrl = `ws://${window.location.host}/jessica`;
let keyID = VideoInfo.id + '_' + new Date().getTime();
let keyID = VideoInfo.id;
let _VideoInfo = {
title: '摄像头',
// dataRate: 1,
......@@ -65,7 +65,8 @@ const Video = (props, ref) => {
PlayersA = new EZUIKit.EZUIKitPlayer({
id: keyID, // 视频容器ID
accessToken: accessToken,
url: `ezopen://open.ys7.com/${VideoInfo.address}/1.hd.live`,
url: `ezopen://open.ys7.com/${VideoInfo.address}/${VideoInfo.channel||1
}.hd.live`,
templete: 'simple',
footer: ['talk', 'broadcast', 'hd', 'fullScreen'],
width: VideoInfo.width || 952,
......
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