Merge branch 'develop' of github.com:havfo/multiparty-meeting into feat/app-fullscreen
* 'develop' of github.com:havfo/multiparty-meeting: Fix number of boxes being counted in updateDimensions fix: fullscreenbutton on screenshare rollback updateDimensions to counting video elements instead of peers(needed fixes screensharing)master
commit
fb6db175b8
|
|
@ -147,7 +147,11 @@ class Peer extends Component
|
|||
|
||||
{screenConsumer ?
|
||||
<div className={classnames('view-container', 'screen')} style={style}>
|
||||
<div className='controls'>
|
||||
<div
|
||||
className={classnames('controls', {
|
||||
visible : this.state.controlsVisible
|
||||
})}
|
||||
>
|
||||
<div
|
||||
className={classnames('button', 'screen', {
|
||||
on : screenVisible,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,12 @@ class Peers extends React.Component
|
|||
|
||||
updateDimensions = () =>
|
||||
{
|
||||
const n = this.props.peers.length;
|
||||
const n = this.props.boxes;
|
||||
|
||||
if (n === 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const width = this.refs.peers.clientWidth;
|
||||
const height = this.refs.peers.clientHeight;
|
||||
|
|
@ -116,27 +121,24 @@ class Peers extends React.Component
|
|||
}
|
||||
|
||||
Peers.propTypes =
|
||||
{
|
||||
{
|
||||
advancedMode : PropTypes.bool,
|
||||
peers : PropTypes.arrayOf(appPropTypes.Peer).isRequired,
|
||||
videoStreams : PropTypes.any,
|
||||
boxes : PropTypes.number,
|
||||
activeSpeakerName : PropTypes.string,
|
||||
toolAreaOpen : PropTypes.bool
|
||||
};
|
||||
};
|
||||
|
||||
const mapStateToProps = (state) =>
|
||||
{
|
||||
const peersArray = Object.values(state.peers);
|
||||
const videoStreamsArray = Object.values(state.consumers);
|
||||
const videoStreams =
|
||||
videoStreamsArray.filter((consumer) =>
|
||||
{
|
||||
return (consumer.source === 'webcam' || consumer.source === 'screen');
|
||||
}).length;
|
||||
const peers = Object.values(state.peers);
|
||||
|
||||
const boxes = peers.length + Object.values(state.consumers)
|
||||
.filter((consumer) => consumer.source === 'screen').length;
|
||||
|
||||
return {
|
||||
peers : peersArray,
|
||||
videoStreams : videoStreams,
|
||||
peers,
|
||||
boxes,
|
||||
activeSpeakerName : state.room.activeSpeakerName,
|
||||
toolAreaOpen : state.toolarea.toolAreaOpen
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background-color: rgba(#2a4b58, 0.9);
|
||||
background-image: url('/resources/images/buddy.svg');
|
||||
background-position: bottom;
|
||||
background-size: auto 85%;
|
||||
background-repeat: no-repeat;
|
||||
|
|
|
|||
Loading…
Reference in New Issue