|
@@ -30,8 +30,11 @@ export class SendVideoController {
|
30
|
30
|
this.rtc.on(
|
31
|
31
|
RTCEvents.SENDER_VIDEO_CONSTRAINTS_CHANGED,
|
32
|
32
|
videoConstraints => {
|
33
|
|
- this._senderVideoConstraints = videoConstraints;
|
34
|
|
- this._propagateSendMaxFrameHeight(videoConstraints);
|
|
33
|
+ // Propagate the sender constraint only if it has changed.
|
|
34
|
+ if (this._senderVideoConstraints?.idealHeight !== videoConstraints.idealHeight) {
|
|
35
|
+ this._senderVideoConstraints = videoConstraints;
|
|
36
|
+ this._propagateSendMaxFrameHeight();
|
|
37
|
+ }
|
35
|
38
|
});
|
36
|
39
|
}
|
37
|
40
|
|