Don't show video mute icon for peer that does not have video visible. Fixes #302
parent
ce8141eed7
commit
16a59f1167
|
|
@ -126,7 +126,7 @@ const ListPeer = (props) =>
|
||||||
<RecordVoiceOverIcon />
|
<RecordVoiceOverIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
}
|
}
|
||||||
{ screenConsumer &&
|
{ screenConsumer && spotlight &&
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
id : 'tooltip.muteScreenSharing',
|
id : 'tooltip.muteScreenSharing',
|
||||||
|
|
@ -159,37 +159,39 @@ const ListPeer = (props) =>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
}
|
}
|
||||||
<Tooltip
|
{ spotlight &&
|
||||||
title={intl.formatMessage({
|
<Tooltip
|
||||||
id : 'tooltip.muteParticipantVideo',
|
title={intl.formatMessage({
|
||||||
defaultMessage : 'Mute participant video'
|
|
||||||
})}
|
|
||||||
placement='bottom'
|
|
||||||
>
|
|
||||||
<IconButton
|
|
||||||
aria-label={intl.formatMessage({
|
|
||||||
id : 'tooltip.muteParticipantVideo',
|
id : 'tooltip.muteParticipantVideo',
|
||||||
defaultMessage : 'Mute participant video'
|
defaultMessage : 'Mute participant video'
|
||||||
})}
|
})}
|
||||||
color={webcamEnabled ? 'primary' : 'secondary'}
|
placement='bottom'
|
||||||
disabled={peer.peerVideoInProgress}
|
|
||||||
className={classes.buttons}
|
|
||||||
onClick={(e) =>
|
|
||||||
{
|
|
||||||
e.stopPropagation();
|
|
||||||
|
|
||||||
webcamEnabled ?
|
|
||||||
roomClient.modifyPeerConsumer(peer.id, 'webcam', true) :
|
|
||||||
roomClient.modifyPeerConsumer(peer.id, 'webcam', false);
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{ webcamEnabled ?
|
<IconButton
|
||||||
<VideocamIcon />
|
aria-label={intl.formatMessage({
|
||||||
:
|
id : 'tooltip.muteParticipantVideo',
|
||||||
<VideocamOffIcon />
|
defaultMessage : 'Mute participant video'
|
||||||
}
|
})}
|
||||||
</IconButton>
|
color={webcamEnabled ? 'primary' : 'secondary'}
|
||||||
</Tooltip>
|
disabled={peer.peerVideoInProgress}
|
||||||
|
className={classes.buttons}
|
||||||
|
onClick={(e) =>
|
||||||
|
{
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
webcamEnabled ?
|
||||||
|
roomClient.modifyPeerConsumer(peer.id, 'webcam', true) :
|
||||||
|
roomClient.modifyPeerConsumer(peer.id, 'webcam', false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{ webcamEnabled ?
|
||||||
|
<VideocamIcon />
|
||||||
|
:
|
||||||
|
<VideocamOffIcon />
|
||||||
|
}
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
}
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
id : 'tooltip.muteParticipant',
|
id : 'tooltip.muteParticipant',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue