From a251760ba05fe204531e019eef652841a1dde0da Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Wed, 15 Nov 2023 00:35:28 +0100 Subject: [PATCH] fix: use ssl websocket connection when the interface is secure Signed-off-by: Stefan Dej --- src/components/webcams/streamers/WebrtcGo2rtc.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/webcams/streamers/WebrtcGo2rtc.vue b/src/components/webcams/streamers/WebrtcGo2rtc.vue index b780e4311..29de86c81 100644 --- a/src/components/webcams/streamers/WebrtcGo2rtc.vue +++ b/src/components/webcams/streamers/WebrtcGo2rtc.vue @@ -62,7 +62,7 @@ export default class WebrtcGo2rtc extends Mixins(BaseMixin, WebcamMixin) { const url = new URL('api/ws' + urlSearch, this.camSettings.stream_url) url.searchParams.set('media', 'video+audio') // change protocol to ws - url.protocol = 'ws:' + url.protocol = this.$store.state.socket.protocol + ':' // output a warning, if no src is set in the url if (!url.searchParams.has('src')) {