fix(av-moderation) Stop screensharing on video mute on native
When the moderator stops the video for the participant stop screensharing (removes the track doesn't just mute it)
This commit is contained in:
parent
09d3344c39
commit
76fc5a0806
|
@ -158,7 +158,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TRACK_UPDATED:
|
case TRACK_UPDATED: {
|
||||||
// TODO Remove the following calls to APP.UI once components interested
|
// TODO Remove the following calls to APP.UI once components interested
|
||||||
// in track mute changes are moved into React and/or redux.
|
// in track mute changes are moved into React and/or redux.
|
||||||
if (typeof APP !== 'undefined') {
|
if (typeof APP !== 'undefined') {
|
||||||
|
@ -192,7 +192,14 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
const { jitsiTrack } = action.track;
|
||||||
|
|
||||||
|
if (jitsiTrack.isMuted()
|
||||||
|
&& jitsiTrack.type === MEDIA_TYPE.VIDEO && jitsiTrack.videoType === VIDEO_TYPE.DESKTOP) {
|
||||||
|
store.dispatch(toggleScreensharing(false));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return next(action);
|
return next(action);
|
||||||
|
|
Loading…
Reference in New Issue