From 6f532f1aa08cd2def87dae20bae6bf11b7cfd806 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Wed, 24 Jul 2024 19:42:57 -0300 Subject: [PATCH] video-player-widget: Warn user about stream coming from disallowed source --- src/components/widgets/VideoPlayer.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/widgets/VideoPlayer.vue b/src/components/widgets/VideoPlayer.vue index 9b45ef6ee..1d22cf323 100644 --- a/src/components/widgets/VideoPlayer.vue +++ b/src/components/widgets/VideoPlayer.vue @@ -202,6 +202,12 @@ const serverStatus = computed(() => { const streamStatus = computed(() => { if (nameSelectedStream.value === undefined) return 'Unknown.' + + const availableSources = videoStore.availableIceIps + if (!availableSources.isEmpty() && !availableSources.find((ip) => videoStore.allowedIceIps.includes(ip))) { + return `Stream is coming from IPs [${availableSources.join(', ')}], which are not in the list of allowed sources + [${videoStore.allowedIceIps.join(', ')}]. Please check your configuration.` + } return videoStore.getStreamData(nameSelectedStream.value)?.webRtcManager.streamStatus ?? 'Unknown.' })