rollback updateDimensions to counting video elements instead of peers(needed fixes screensharing)

master
Stefan Otto 2018-07-18 15:20:22 +02:00
parent 62412caad2
commit dcca301d82
1 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,12 @@ class Peers extends React.Component
updateDimensions = () =>
{
const n = this.props.peers.length;
const n = this.props.videoStreams ? this.props.videoStreams : 0;
if (n == 0)
{
return;
}
const width = this.refs.peers.clientWidth;
const height = this.refs.peers.clientHeight;