diff --git a/src/stores/video.ts b/src/stores/video.ts index 9184eece2..b4c0b44ce 100644 --- a/src/stores/video.ts +++ b/src/stores/video.ts @@ -48,5 +48,33 @@ export const useVideoStore = defineStore('video', () => { }) }) + // Routine to make sure the user has chosen the allowed ICE candidate IPs, so the stream works as expected + const iceIpCheckInterval = setInterval(() => { + // Pass if there are no available IPs yet or if the user has already set the allowed ones + if (availableIceIps.value === undefined || !allowedIceIps.value.isEmpty()) { + return + } + // If there's more than one IP candidate available, send a warning an clear the check routine + if (availableIceIps.value.length >= 1) { + Swal.fire({ + html: ` +
Cockpit detected more than one IP being used to route the video streaming. This situation often leads to + video stuterring, specially if one of the IPs is from a non-wired connection.
+ +To prevent issues and archieve an optimum streaming experience, please:
+