|
@@ -2664,7 +2664,7 @@ TraceablePeerConnection.prototype.setSenderVideoConstraints = function(frameHeig
|
2664
|
2664
|
let bitrate = this.getTargetVideoBitrates()?.high;
|
2665
|
2665
|
|
2666
|
2666
|
if (videoType === VideoType.CAMERA) {
|
2667
|
|
- bitrate = this.tpcUtils.localStreamEncodingsConfig
|
|
2667
|
+ bitrate = this.tpcUtils._getVideoStreamEncodings(localVideoTrack.getVideoType())
|
2668
|
2668
|
.find(layer => layer.scaleResolutionDownBy === scaleFactor)?.maxBitrate ?? bitrate;
|
2669
|
2669
|
}
|
2670
|
2670
|
parameters.encodings[0].maxBitrate = bitrate;
|