Kaynağa Gözat

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.
master
Jaya Allamsetty 5 yıl önce
ebeveyn
işleme
25271d7eec
1 değiştirilmiş dosya ile 2 ekleme ve 4 silme
  1. 2
    4
      react/features/base/tracks/middleware.js

+ 2
- 4
react/features/base/tracks/middleware.js Dosyayı Görüntüle

@@ -153,12 +153,10 @@ MiddlewareRegistry.register(store => next => action => {
153 153
             const isVideoTrack = jitsiTrack.type !== MEDIA_TYPE.AUDIO;
154 154
 
155 155
             if (isVideoTrack) {
156
+                // Do not change the video mute state for local presenter tracks.
156 157
                 if (jitsiTrack.type === MEDIA_TYPE.PRESENTER) {
157 158
                     APP.conference.mutePresenter(muted);
158
-                }
159
-
160
-                // Make sure we change the video mute state only for camera tracks.
161
-                if (jitsiTrack.isLocal() && jitsiTrack.videoType !== 'desktop') {
159
+                } else if (jitsiTrack.isLocal()) {
162 160
                     APP.conference.setVideoMuteStatus(muted);
163 161
                 } else {
164 162
                     APP.UI.setVideoMuted(participantID, muted);

Loading…
İptal
Kaydet