|
|
@@ -2086,6 +2086,7 @@ TraceablePeerConnection.prototype.setSenderVideoDegradationPreference = function
|
|
2086
|
2086
|
parameters.encodings[encoding].degradationPreference = preference;
|
|
2087
|
2087
|
}
|
|
2088
|
2088
|
}
|
|
|
2089
|
+ this.tpcUtils.updateEncodingsResolution(parameters);
|
|
2089
|
2090
|
|
|
2090
|
2091
|
return videoSender.setParameters(parameters);
|
|
2091
|
2092
|
};
|
|
|
@@ -2183,6 +2184,7 @@ TraceablePeerConnection.prototype.setMaxBitRate = function() {
|
|
2183
|
2184
|
}
|
|
2184
|
2185
|
parameters.encodings[0].maxBitrate = bitrate;
|
|
2185
|
2186
|
}
|
|
|
2187
|
+ this.tpcUtils.updateEncodingsResolution(parameters);
|
|
2186
|
2188
|
|
|
2187
|
2189
|
return videoSender.setParameters(parameters);
|
|
2188
|
2190
|
};
|
|
|
@@ -2323,6 +2325,7 @@ TraceablePeerConnection.prototype.setSenderVideoConstraint = function(frameHeigh
|
|
2323
|
2325
|
parameters.encodings[encoding].active = encodingsEnabledState[encoding];
|
|
2324
|
2326
|
}
|
|
2325
|
2327
|
}
|
|
|
2328
|
+ this.tpcUtils.updateEncodingsResolution(parameters);
|
|
2326
|
2329
|
} else if (newHeight > 0) {
|
|
2327
|
2330
|
parameters.encodings[0].scaleResolutionDownBy = localVideoTrack.resolution >= newHeight
|
|
2328
|
2331
|
? Math.floor(localVideoTrack.resolution / newHeight)
|