Use the number of peers instead of the number of video streams to compute dimensions
This commit is contained in:
@@ -25,12 +25,7 @@ class Peers extends React.Component
|
|||||||
|
|
||||||
updateDimensions()
|
updateDimensions()
|
||||||
{
|
{
|
||||||
const n = this.props.videoStreams ? this.props.videoStreams : 0;
|
const n = this.props.peers.length;
|
||||||
|
|
||||||
if (n == 0)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const width = this.refs.peers.clientWidth;
|
const width = this.refs.peers.clientWidth;
|
||||||
const height = this.refs.peers.clientHeight;
|
const height = this.refs.peers.clientHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user