From 8a4254fd64269648d3c03e547fb7bb97efb3a59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Tue, 23 Dec 2025 15:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAip=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/camera/camera.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/camera/camera.vue b/src/components/camera/camera.vue index cdf15f4..c395de5 100644 --- a/src/components/camera/camera.vue +++ b/src/components/camera/camera.vue @@ -75,9 +75,11 @@ export default { }, methods: { getHttp(){ + const hostname = window.location.hostname; + this.streamUrl = - "http://127.0.0.1:8096/index/api/webrtc?app=live&stream=camera" + + "http://"+hostname+":8096/index/api/webrtc?app=live&stream=camera" + this.cameraId + "&type=play"; },