From 931ca368b79004a103451dde9d6f89dbe1415e2c Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty <54324652+jallamsetty1@users.noreply.github.com> Date: Wed, 15 Feb 2023 10:34:57 -0500 Subject: [PATCH] fix(TPC): Fix encodings for p2p connection. 'localStreamEncodingsConfig' is no longer available on TPCUtils. --- modules/RTC/TraceablePeerConnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/RTC/TraceablePeerConnection.js b/modules/RTC/TraceablePeerConnection.js index 7fb8a032da..c655ab895e 100644 --- a/modules/RTC/TraceablePeerConnection.js +++ b/modules/RTC/TraceablePeerConnection.js @@ -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;