Merge pull request #401 from havfo/feat-network-indicator

Fix crash when extra video is running
auto_join_3.3
Håvar Aambø Fosstveit 2020-05-20 20:17:22 +02:00 committed by GitHub
commit 27eeadbe84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -817,6 +817,7 @@ const Me = (props) =>
<VideoView
isMe
isExtraVideo
advancedMode={advancedMode}
peer={me}
displayName={settings.displayName}

View File

@ -187,8 +187,9 @@ class VideoView extends React.PureComponent
{
const {
isMe,
showQuality,
isScreen,
isExtraVideo,
showQuality,
displayName,
showPeerInfo,
videoContain,
@ -307,7 +308,7 @@ class VideoView extends React.PureComponent
</React.Fragment>
}
{ isMe && !isScreen &&
{ isMe && !isScreen && !isExtraVideo &&
(netInfo.recv && netInfo.send && netInfo.send.iceSelectedTuple) &&
<React.Fragment>
<span className={'RecvL'}>Recv: </span>
@ -533,8 +534,9 @@ class VideoView extends React.PureComponent
VideoView.propTypes =
{
isMe : PropTypes.bool,
showQuality : PropTypes.bool,
isScreen : PropTypes.bool,
isExtraVideo : PropTypes.bool,
showQuality : PropTypes.bool,
displayName : PropTypes.string,
showPeerInfo : PropTypes.bool,
videoContain : PropTypes.bool,