Browse Source

fix(TPC): Fix encodings for p2p connection. 'localStreamEncodingsConfig' is no longer available on TPCUtils.

dev1
Jaya Allamsetty 2 years ago
parent
commit
931ca368b7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

+ 1
- 1
modules/RTC/TraceablePeerConnection.js View File

@@ -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;

Loading…
Cancel
Save