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

Fix crash when extra video is running
This commit is contained in:
Håvar Aambø Fosstveit
2020-05-20 20:17:22 +02:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -817,6 +817,7 @@ const Me = (props) =>
<VideoView
isMe
isExtraVideo
advancedMode={advancedMode}
peer={me}
displayName={settings.displayName}
@@ -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,