diff --git a/projects/Platform/wwwroot/components/devices/camera.vue b/projects/Platform/wwwroot/components/devices/camera.vue index ae9229bf..01effede 100644 --- a/projects/Platform/wwwroot/components/devices/camera.vue +++ b/projects/Platform/wwwroot/components/devices/camera.vue @@ -258,10 +258,10 @@ computed: { url: function () { if (this.isFlvSupported) { - return location.protocol + '//' + location.hostname + '/live/' + this.device.number + '.flv'; + return location.protocol + '//' + location.host + '/live/' + this.device.number + '.flv'; } else { - return location.protocol + '//' + location.hostname + '/live/' + this.device.number + '.m3u8'; + return location.protocol + '//' + location.host + '/live/' + this.device.number + '.m3u8'; } //return getDeviceDataValue(this.device, 'flv'); },