Commit 62deabf7 authored by 陈龙's avatar 陈龙

feat: 支持移动端的网关配置

parent 54ee78d0
...@@ -36,7 +36,7 @@ import style from './index.less'; ...@@ -36,7 +36,7 @@ import style from './index.less';
const Video = (props, ref) => { const Video = (props, ref) => {
const _video = useRef(null); const _video = useRef(null);
const Players = useRef(null); const Players = useRef(null);
const { VideoInfo, JessibucaObj } = props; const { VideoInfo, JessibucaObj,gateway } = props;
let baseUrl = `ws://${window.location.host}/jessica`; let baseUrl = `ws://${window.location.host}/jessica`;
let _VideoInfo = { let _VideoInfo = {
...@@ -86,7 +86,7 @@ const Video = (props, ref) => { ...@@ -86,7 +86,7 @@ const Video = (props, ref) => {
} else { } else {
getToken(); getToken();
} }
const CommonPath = window?.globalConfig?.hasGateWay ? 'PandaCore/GateWay/Video/' : ''; const CommonPath = (VideoInfo.gateway || window?.globalConfig?.hasGateWay) ? 'PandaCore/GateWay/Video/' : ''; // 配置了gateway或者pc端web配置中有gateway
VideoInfo.url = VideoInfo.useFullUrl VideoInfo.url = VideoInfo.useFullUrl
? VideoInfo.fullUrl ? VideoInfo.fullUrl
: (VideoInfo.pandavmsHost||'ws://'+location.host+'/') + (VideoInfo.gateway : (VideoInfo.pandavmsHost||'ws://'+location.host+'/') + (VideoInfo.gateway
......
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