Use the number of peers instead of the number of video streams to compute dimensions
parent
643e54351c
commit
3acc2a6936
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue