Bladeren bron

fix(quality-control): Send the new constraint on join.

Fixes the case where the old format height constraint is sent on join for a jvb media session.
dev1
Jaya Allamsetty 4 jaren geleden
bovenliggende
commit
463e213b3f
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6
    1
      modules/qualitycontrol/ReceiveVideoController.js

+ 6
- 1
modules/qualitycontrol/ReceiveVideoController.js Bestand weergeven

@@ -199,7 +199,12 @@ export class ReceiveVideoController {
199 199
      * @private
200 200
      */
201 201
     _onMediaSessionStarted(mediaSession) {
202
-        this._maxFrameHeight && mediaSession.setReceiverVideoConstraint(this._maxFrameHeight);
202
+        if (mediaSession.isP2P || !this._receiverVideoConstraints) {
203
+            mediaSession.setReceiverVideoConstraint(this._maxFrameHeight);
204
+        } else {
205
+            this._receiverVideoConstraints.updateReceiveResolution(this._maxFrameHeight);
206
+            this._rtc.setNewReceiverVideoConstraints(this._receiverVideoConstraints.constraints);
207
+        }
203 208
     }
204 209
 
205 210
     /**

Laden…
Annuleren
Opslaan