Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
25271d7eec
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2
    4
      react/features/base/tracks/middleware.js

+ 2
- 4
react/features/base/tracks/middleware.js Parādīt failu

@@ -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);

Notiek ielāde…
Atcelt
Saglabāt