|
@@ -55,6 +55,11 @@ type Props = {
|
55
|
55
|
*/
|
56
|
56
|
avatarSize: number,
|
57
|
57
|
|
|
58
|
+ /**
|
|
59
|
+ * Whether video should be disabled for his view.
|
|
60
|
+ */
|
|
61
|
+ disableVideo: ?boolean,
|
|
62
|
+
|
58
|
63
|
/**
|
59
|
64
|
* Callback to invoke when the {@code ParticipantView} is clicked/pressed.
|
60
|
65
|
*/
|
|
@@ -250,7 +255,7 @@ class ParticipantView extends Component<Props> {
|
250
|
255
|
* @returns {Props}
|
251
|
256
|
*/
|
252
|
257
|
function _mapStateToProps(state, ownProps) {
|
253
|
|
- const { participantId } = ownProps;
|
|
258
|
+ const { disableVideo, participantId } = ownProps;
|
254
|
259
|
let connectionStatus;
|
255
|
260
|
let participantName;
|
256
|
261
|
|
|
@@ -259,7 +264,7 @@ function _mapStateToProps(state, ownProps) {
|
259
|
264
|
connectionStatus
|
260
|
265
|
|| JitsiParticipantConnectionStatus.ACTIVE,
|
261
|
266
|
_participantName: participantName,
|
262
|
|
- _renderVideo: shouldRenderParticipantVideo(state, participantId),
|
|
267
|
+ _renderVideo: shouldRenderParticipantVideo(state, participantId) && !disableVideo,
|
263
|
268
|
_videoTrack:
|
264
|
269
|
getTrackByMediaTypeAndParticipant(
|
265
|
270
|
state['features/base/tracks'],
|