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"; },