Pārlūkot izejas kodu

fix: Fixes set effect and correct presence state.

dev1
Дамян Минков 3 gadus atpakaļ
vecāks
revīzija
d630bc32a1
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4
    1
      JitsiConference.js

+ 4
- 1
JitsiConference.js Parādīt failu

@@ -1265,7 +1265,10 @@ JitsiConference.prototype.replaceTrack = function(oldTrack, newTrack) {
1265 1265
             }
1266 1266
 
1267 1267
             // updates presence when we replace the video tracks desktop with screen and screen with desktop
1268
-            if (oldTrackBelongsToConference && oldTrack?.isVideoTrack()) {
1268
+            if (oldTrackBelongsToConference && oldTrack?.isVideoTrack()
1269
+
1270
+                // we do not want to send presence update during setEffect switching, which does remove and then add
1271
+                && !(oldTrack?._setEffectInProgress || newTrack?._setEffectInProgress)) {
1269 1272
                 this._updateRoomPresence(this._getActiveMediaSession());
1270 1273
             }
1271 1274
 

Notiek ielāde…
Atcelt
Saglabāt