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

视频组件新增网关配置

parent 3bd3379b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com * @Author: 634665781 634665781@qq.com
* @Date: 2023-04-11 13:40:18 * @Date: 2023-04-11 13:40:18
* @LastEditors: 634665781 634665781@qq.com * @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2023-04-26 10:22:43 * @LastEditTime: 2023-04-26 16:00:59
* @FilePath: \wisdom-components\packages\base-components\VmsVideo\src\index.jsx * @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 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -86,10 +86,12 @@ const Video = (props, ref) => { ...@@ -86,10 +86,12 @@ const Video = (props, ref) => {
} else { } else {
getToken(); getToken();
} }
const CommonPath = window?.globalConfig?.hasGateWay?'/PandaCore/GateWay/Video':''; const CommonPath = window?.globalConfig?.hasGateWay ? '/PandaCore/GateWay/Video' : '';
VideoInfo.url = VideoInfo.useFullUrl VideoInfo.url = VideoInfo.useFullUrl
? VideoInfo.fullUrl ? VideoInfo.fullUrl
: VideoInfo.pandavmsHost+ VideoInfo.gateway?CommonPath:'' + '/jessica/' + VideoInfo.id; : (VideoInfo.pandavmsHost||'ws://'+location.host) + (VideoInfo.gateway
? CommonPath
: '' + '/jessica/' + VideoInfo.id);
let operateBtns = { let operateBtns = {
fullscreen: true, fullscreen: true,
screenshot: 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