|
@@ -2278,6 +2278,13 @@ TraceablePeerConnection.prototype.setSenderVideoConstraint = function(frameHeigh
|
2278
|
2278
|
|
2279
|
2279
|
this.senderVideoMaxHeight = newHeight;
|
2280
|
2280
|
|
|
2281
|
+ // If layer suspension is disabled and sender constraint is not configured for the conference,
|
|
2282
|
+ // resolve here so that the encodings stay enabled. This can happen in custom apps built using
|
|
2283
|
+ // lib-jitsi-meet.
|
|
2284
|
+ if (newHeight === null) {
|
|
2285
|
+ return Promise.resolve();
|
|
2286
|
+ }
|
|
2287
|
+
|
2281
|
2288
|
logger.log(`${this} senderVideoMaxHeight: ${newHeight}`);
|
2282
|
2289
|
|
2283
|
2290
|
const localVideoTrack = this.getLocalVideoTrack();
|