修改为ip自动识别类型

杭州-烟草
LAPTOP-S9HJSOEB\昊天 2 months ago
parent 08e79edffa
commit 8a4254fd64

@ -75,9 +75,11 @@ export default {
}, },
methods: { methods: {
getHttp(){ getHttp(){
const hostname = window.location.hostname;
this.streamUrl = 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 + this.cameraId +
"&type=play"; "&type=play";
}, },

Loading…
Cancel
Save