fix(presenter): Do not change the video mute state on presenter mute.
This fixes the issue where the local preview appears muted when presenter camera is turned on and then off while screenshare is in progress.
This commit is contained in:
parent
7ef4de9c1c
commit
25271d7eec
|
@ -153,12 +153,10 @@ MiddlewareRegistry.register(store => next => action => {
|
|||
const isVideoTrack = jitsiTrack.type !== MEDIA_TYPE.AUDIO;
|
||||
|
||||
if (isVideoTrack) {
|
||||
// Do not change the video mute state for local presenter tracks.
|
||||
if (jitsiTrack.type === MEDIA_TYPE.PRESENTER) {
|
||||
APP.conference.mutePresenter(muted);
|
||||
}
|
||||
|
||||
// Make sure we change the video mute state only for camera tracks.
|
||||
if (jitsiTrack.isLocal() && jitsiTrack.videoType !== 'desktop') {
|
||||
} else if (jitsiTrack.isLocal()) {
|
||||
APP.conference.setVideoMuteStatus(muted);
|
||||
} else {
|
||||
APP.UI.setVideoMuted(participantID, muted);
|
||||
|
|
Loading…
Reference in New Issue