Skip to content

Commit

Permalink
video-player-widget: Warn user about stream coming from disallowed so…
Browse files Browse the repository at this point in the history
…urce
  • Loading branch information
rafaellehmkuhl authored and ArturoManzoli committed Jul 26, 2024
1 parent 5c01942 commit 6f532f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/widgets/VideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
})
</script>
Expand Down

0 comments on commit 6f532f1

Please sign in to comment.