diff --git a/public/playerVideo6/jessibuca.js b/public/playerVideo6/jessibuca.js index 601f208..1450494 100644 --- a/public/playerVideo6/jessibuca.js +++ b/public/playerVideo6/jessibuca.js @@ -37,8 +37,8 @@ hasControl: !1, loadingText: '', background: '', - // decoder: `${window.localStorage.getItem('deployPath')}/playerVideo6/decoder.js`, // 线上使用 - decoder: `/playerVideo6/decoder.js`, // 本地使用 + decoder: `${window.localStorage.getItem('deployPath')}/playerVideo6/decoder.js`, // 线上使用 + // decoder: `/playerVideo6/decoder.js`, // 本地使用 // decoder: import.meta.env.MODE === 'development' ? `/playerVideo6/decoder.js` : `${window.localStorage.getItem('deployPath')}/playerVideo6/decoder.js`, url: '', rotate: 0, diff --git a/public/playerVideo6/jessibuca.js b/public/playerVideo6/jessibuca.js index 601f208..1450494 100644 --- a/public/playerVideo6/jessibuca.js +++ b/public/playerVideo6/jessibuca.js @@ -37,8 +37,8 @@ hasControl: !1, loadingText: '', background: '', - // decoder: `${window.localStorage.getItem('deployPath')}/playerVideo6/decoder.js`, // 线上使用 - decoder: `/playerVideo6/decoder.js`, // 本地使用 + decoder: `${window.localStorage.getItem('deployPath')}/playerVideo6/decoder.js`, // 线上使用 + // decoder: `/playerVideo6/decoder.js`, // 本地使用 // decoder: import.meta.env.MODE === 'development' ? `/playerVideo6/decoder.js` : `${window.localStorage.getItem('deployPath')}/playerVideo6/decoder.js`, url: '', rotate: 0, diff --git a/src/views/monitor/realTime/index-new-gm-plugin.vue b/src/views/monitor/realTime/index-new-gm-plugin.vue index 88fda3e..87e2140 100644 --- a/src/views/monitor/realTime/index-new-gm-plugin.vue +++ b/src/views/monitor/realTime/index-new-gm-plugin.vue @@ -153,7 +153,7 @@ console.log('获取设备信息', data) if (data.device.deviceStatusName === '离线') { ElMessage.warning(`设备 ${data.device.monitorName} 离线`) - // return false + return false } const now = new Date().getTime() @@ -253,25 +253,25 @@ // 创建流 async function fetchStream(deviceId: string) { loading.value = true - const res = await setTimeout(() => { - ElMessage.warning('获取视频数据中...') - }, 3000) - loading.value = false - return { - url: testurl[`${currentIndex}`], - createStreamResponseId: currentIndex, - } - // const res = await createStream(deviceId) + // const res = await setTimeout(() => { + // ElMessage.warning('获取视频数据中...') + // }, 3000) // loading.value = false - // if (res && res.data) { - // return { - // url: res.data.url, - // createStreamResponseId: res.data.id, - // } + // return { + // url: testurl[`${currentIndex}`], + // createStreamResponseId: currentIndex, // } - // else { - // // ElMessage.warning('创建流失败!') - // } + const res = await createStream(deviceId) + loading.value = false + if (res && res.data) { + return { + url: res.data.url, + createStreamResponseId: res.data.id, + } + } + else { + // ElMessage.warning('创建流失败!') + } } // 停止流 @@ -489,7 +489,7 @@
- 识别关注要点: + 安全检查要点: