Skip to content

Commit 8ed7a44

Browse files
Merge pull request #269 from Azure-Samples/vriosrada/4094400/5x5-updates
#4094400: 5x5 changes
2 parents babac89 + 622ebe2 commit 8ed7a44

File tree

3 files changed

+147
-335
lines changed

3 files changed

+147
-335
lines changed

Project/src/MakeCall/CallCard.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { MessageBar, MessageBarType } from '@fluentui/react'
3-
import { FunctionalStreamRenderer as StreamRenderer } from "./FunctionalStreamRenderer";
3+
import { StreamRenderer } from "./StreamRenderer";
44
import AddParticipantPopover from "./AddParticipantPopover";
55
import RemoteParticipantCard from "./RemoteParticipantCard";
66
import { Panel, PanelType } from '@fluentui/react/lib/Panel';
@@ -517,7 +517,6 @@ export default class CallCard extends React.Component {
517517
}
518518

519519
updateListOfParticipantsToRender(reason) {
520-
521520
const ovcFeature = this.call.feature(Features.OptimalVideoCount);
522521
const optimalVideoCount = ovcFeature.optimalVideoCount;
523522
console.log(`updateListOfParticipantsToRender because ${reason}, ovc is ${optimalVideoCount}`);
@@ -559,7 +558,7 @@ export default class CallCard extends React.Component {
559558
});
560559
streamsToAdd = streamsToAdd.slice(0, optimalVideoCount - streamsToKeep.length);
561560
console.log(`updateListOfParticipantsToRender identified ${streamsToAdd.length} streams to add`);
562-
streamsToKeep = streamsToKeep.concat(streamsToAdd.filter(e => !!e));
561+
streamsToKeep = streamsToKeep.concat(streamsToAdd.filter(stream => !!stream.participant));
563562
}
564563
console.log(`updateListOfParticipantsToRender final number of streams to render ${streamsToKeep.length}}`);
565564
this.setState(prevState => ({

Project/src/MakeCall/FunctionalStreamRenderer.js

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)