|
@@ -90,16 +90,16 @@ export default class SendVideoController {
|
90
|
90
|
*/
|
91
|
91
|
_onSenderConstraintsReceived(videoConstraints) {
|
92
|
92
|
if (FeatureFlags.isSourceNameSignalingEnabled()) {
|
93
|
|
- const { idealHeight, sourceName } = videoConstraints;
|
|
93
|
+ const { maxHeight, sourceName } = videoConstraints;
|
94
|
94
|
const localVideoTracks = this._conference.getLocalVideoTracks() ?? [];
|
95
|
95
|
|
96
|
96
|
for (const track of localVideoTracks) {
|
97
|
97
|
// Propagate the sender constraint only if it has changed.
|
98
|
98
|
if (track.getSourceName() === sourceName
|
99
|
99
|
&& (!this._sourceSenderConstraints.has(sourceName)
|
100
|
|
- || this._sourceSenderConstraints.get(sourceName) !== idealHeight)) {
|
101
|
|
- this._sourceSenderConstraints.set(sourceName, idealHeight);
|
102
|
|
- logger.debug(`Sender constraints for source:${sourceName} changed to idealHeight:${idealHeight}`);
|
|
100
|
+ || this._sourceSenderConstraints.get(sourceName) !== maxHeight)) {
|
|
101
|
+ this._sourceSenderConstraints.set(sourceName, maxHeight);
|
|
102
|
+ logger.debug(`Sender constraints for source:${sourceName} changed to maxHeight:${maxHeight}`);
|
103
|
103
|
this._propagateSendMaxFrameHeight(sourceName);
|
104
|
104
|
}
|
105
|
105
|
}
|