From 52edf8eae124e2e2f087ed8cec6377c89608a9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=91=AB?= Date: Wed, 23 Dec 2020 14:41:20 +0800 Subject: [PATCH] =?UTF-8?q?ws=E5=9C=B0=E5=9D=80=E4=BF=AE=E6=94=B9'ws://127?= =?UTF-8?q?.0.0.1:9007...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/realTimeMonitoring/index.vue | 3 ++- src/views/realTimeMonitoring/model.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/realTimeMonitoring/index.vue b/src/views/realTimeMonitoring/index.vue index f791440..9295aa7 100644 --- a/src/views/realTimeMonitoring/index.vue +++ b/src/views/realTimeMonitoring/index.vue @@ -109,7 +109,8 @@ export default { } }).then(res => { console.log(res.data) - var url = 'ws://192.168.66.56:9007/api/lychee/stream/live/'+res.data.channel + // var url = 'ws://192.168.66.56:9007/api/lychee/stream/live/'+res.data.channel + var url = 'ws://127.0.0.1:9007/api/lychee/stream/live/'+res.data.channel var player = new JSMpeg.Player(url, { canvas: document.querySelector('.video'+item.id), audio: false, diff --git a/src/views/realTimeMonitoring/model.vue b/src/views/realTimeMonitoring/model.vue index d4324c0..aec7053 100644 --- a/src/views/realTimeMonitoring/model.vue +++ b/src/views/realTimeMonitoring/model.vue @@ -150,7 +150,7 @@ export default { } }).then(res => { console.log(res.data) - var url = 'ws://192.168.66.56:9007/api/lychee/stream/live/'+res.data.channel + var url = 'ws://127.0.0.1:9007/api/lychee/stream/live/'+res.data.channel var player = new JSMpeg.Player(url, { canvas: document.querySelector('.video-canvas'), audio: false,