瀏覽代碼

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

dev1
Jaya Allamsetty 2 年之前
父節點
當前提交
931ca368b7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

+ 1
- 1
modules/RTC/TraceablePeerConnection.js 查看文件

@@ -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…
取消
儲存