Use the number of peers instead of the number of video streams to compute dimensions

master
Torjus 2018-07-16 16:27:29 +02:00
parent 643e54351c
commit 3acc2a6936
1 changed files with 1 additions and 6 deletions

View File

@ -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;