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

This commit is contained in:
Stefan Otto
2018-07-18 15:20:22 +02:00
parent 62412caad2
commit dcca301d82
+6 -1
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;