CzRger 1 anno fa
parent
commit
9e8b6778b4

+ 4 - 3
src/views/screen/video-resource/important-area-focus.vue

@@ -405,6 +405,7 @@ export default defineComponent({
         }
       ]
     });
+    const cC = window.cusConfig
     watch(() => state.videoData, (n) => {
       state.currentInfo = n?.[0] || {}
     })
@@ -418,7 +419,7 @@ export default defineComponent({
       const streamId = obj.hlsUrl.substring(obj.hlsUrl.indexOf('/live/') + 6)
       const params = {
         'secret': state.secret,
-        'src_url': `${obj.hlsUrl}/rtmp`,
+        'src_url': `${obj.hlsUrl}/${cC.video.source}`,
         'dst_url': `rtmp://127.0.0.1/live/${streamId}`,
         'timeout_ms': 10000,
         'enable_hls': 0,
@@ -445,8 +446,8 @@ export default defineComponent({
           })
           axios.get(url_2).then(res => {
             if (res.status === 200 && res.data?.code === 0) {
-              obj.flvUrl = `ws://10.110.31.81/odae-video/live/${streamId}.live.flv`
-              obj.flvUrlProxy = `ws://${location.host}/${store.state.app.apiProxy.tesApi}/live/${streamId}.live.flv`
+              obj.flvUrl = `ws://10.110.31.81/odae-video/live/${streamId}/${cC.video.source}.live.flv`
+              obj.flvUrlProxy = `ws://${location.host}/${store.state.app.apiProxy.tesApi}/live/${streamId}/${cC.video.source}.live.flv`
             }
             console.log(res)
           })