Skip to content

Commit

Permalink
fix(TPC): Fix encodings for p2p connection. 'localStreamEncodingsConf…
Browse files Browse the repository at this point in the history
…ig' is no longer available on TPCUtils.
  • Loading branch information
jallamsetty1 committed Feb 15, 2023
1 parent 829f5ac commit 931ca36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/RTC/TraceablePeerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2664,7 +2664,7 @@ TraceablePeerConnection.prototype.setSenderVideoConstraints = function(frameHeig
let bitrate = this.getTargetVideoBitrates()?.high;

if (videoType === VideoType.CAMERA) {
bitrate = this.tpcUtils.localStreamEncodingsConfig
bitrate = this.tpcUtils._getVideoStreamEncodings(localVideoTrack.getVideoType())
.find(layer => layer.scaleResolutionDownBy === scaleFactor)?.maxBitrate ?? bitrate;
}
parameters.encodings[0].maxBitrate = bitrate;
Expand Down

0 comments on commit 931ca36

Please sign in to comment.