fix(av-moderation) Stop screensharing and video on moderation start

When video moderation starts, stop screensharing and ignore if video was on when sharing started
pull/10034/head jitsi-meet_6382
robertpin 3 years ago committed by vp8x8
parent 823cab3851
commit 57083c174f
  1. 2
      react/features/base/tracks/middleware.js

@ -179,7 +179,7 @@ MiddlewareRegistry.register(store => next => action => {
} else if (jitsiTrack.isLocal() && !(jitsiTrack.videoType === VIDEO_TYPE.DESKTOP)) {
APP.conference.setVideoMuteStatus();
} else if (jitsiTrack.isLocal() && muted && jitsiTrack.videoType === VIDEO_TYPE.DESKTOP) {
store.dispatch(toggleScreensharing(false));
store.dispatch(toggleScreensharing(false, false, true));
} else {
APP.UI.setVideoMuted(participantID);
}

Loading…
Cancel
Save