diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index f28fc6c7..1d27d311 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -15,7 +15,7 @@ - Webcam + Webcam @@ -58,15 +58,15 @@ }), url() { - if(this.webcamConfig.service === 'mjpegstreamer-adaptive') { - return this.imageData; - } else { + if (this.webcamConfig.service === 'mjpegstreamer' && this.webcamConfig.url.indexOf("?") !== -1) { let basicUrl = this.webcamConfig.url - if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" - const params = new URLSearchParams(basicUrl) params.set('bypassCache', ""+this.refresh) return decodeURIComponent(params.toString()) + } else if (this.webcamConfig.service === 'mjpegstreamer-adaptive') { + return this.imageData + } else { + return this.webcamConfig.url } },