File tree Expand file tree Collapse file tree 3 files changed +147
-335
lines changed Expand file tree Collapse file tree 3 files changed +147
-335
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { MessageBar , MessageBarType } from '@fluentui/react'
3
- import { FunctionalStreamRenderer as StreamRenderer } from "./FunctionalStreamRenderer " ;
3
+ import { StreamRenderer } from "./StreamRenderer " ;
4
4
import AddParticipantPopover from "./AddParticipantPopover" ;
5
5
import RemoteParticipantCard from "./RemoteParticipantCard" ;
6
6
import { Panel , PanelType } from '@fluentui/react/lib/Panel' ;
@@ -517,7 +517,6 @@ export default class CallCard extends React.Component {
517
517
}
518
518
519
519
updateListOfParticipantsToRender ( reason ) {
520
-
521
520
const ovcFeature = this . call . feature ( Features . OptimalVideoCount ) ;
522
521
const optimalVideoCount = ovcFeature . optimalVideoCount ;
523
522
console . log ( `updateListOfParticipantsToRender because ${ reason } , ovc is ${ optimalVideoCount } ` ) ;
@@ -559,7 +558,7 @@ export default class CallCard extends React.Component {
559
558
} ) ;
560
559
streamsToAdd = streamsToAdd . slice ( 0 , optimalVideoCount - streamsToKeep . length ) ;
561
560
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 ) ) ;
563
562
}
564
563
console . log ( `updateListOfParticipantsToRender final number of streams to render ${ streamsToKeep . length } }` ) ;
565
564
this . setState ( prevState => ( {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments