From 9e216bd06007baf99fcdf98baf0bdf60340ead0f Mon Sep 17 00:00:00 2001 From: Matthew Cotton Date: Thu, 20 Jun 2024 15:15:29 +1000 Subject: [PATCH] Fixing SFU probator stream exclusion. This will fix using SFU with Firefox. --- Frontend/library/src/VideoPlayer/StreamController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/library/src/VideoPlayer/StreamController.ts b/Frontend/library/src/VideoPlayer/StreamController.ts index e8dc2328..31874e41 100644 --- a/Frontend/library/src/VideoPlayer/StreamController.ts +++ b/Frontend/library/src/VideoPlayer/StreamController.ts @@ -33,7 +33,7 @@ export class StreamController { ); // Do not add the track if the ID is `probator` as this is special track created by mediasoup for bitrate probing. // Refer to https://github.com/EpicGamesExt/PixelStreamingInfrastructure/pull/86 for more details. - if (rtcTrackEvent.track.id == 'probator') { + if (rtcTrackEvent.streams.length < 1 || rtcTrackEvent.streams[0].id == 'probator') { return; }