Skip to content

Commit

Permalink
Merge pull request #148 from mcottontensor/sfu_probator
Browse files Browse the repository at this point in the history
Fixing SFU probator stream exclusion. This will fix using SFU with Firefox
  • Loading branch information
mcottontensor authored Jun 20, 2024
2 parents 6ebd533 + 9e216bd commit 9b9f27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Frontend/library/src/VideoPlayer/StreamController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9b9f27d

Please sign in to comment.