浏览代码

fix(SS): Implement a 2500Kbps limit for VP9 SS.

dev1
Jaya Allamsetty 4 年前
父节点
当前提交
baa78aca40
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      modules/RTC/TraceablePeerConnection.js

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

1630
             if (this.codecPreference.mimeType === CodecMimeType.VP9) {
1630
             if (this.codecPreference.mimeType === CodecMimeType.VP9) {
1631
                 const bitrates = this.videoBitrates.VP9 || this.videoBitrates;
1631
                 const bitrates = this.videoBitrates.VP9 || this.videoBitrates;
1632
                 const hdBitrate = bitrates.high ? bitrates.high : HD_BITRATE;
1632
                 const hdBitrate = bitrates.high ? bitrates.high : HD_BITRATE;
1633
+                const limit = Math.floor((this._isSharingScreen() ? HD_BITRATE : hdBitrate) / 1000);
1633
 
1634
 
1634
                 // Use only the HD bitrate for now as there is no API available yet for configuring
1635
                 // Use only the HD bitrate for now as there is no API available yet for configuring
1635
                 // the bitrates on the individual SVC layers.
1636
                 // the bitrates on the individual SVC layers.
1636
                 mLine.bandwidth = [ {
1637
                 mLine.bandwidth = [ {
1637
                     type: 'AS',
1638
                     type: 'AS',
1638
-                    limit: this._isSharingScreen() ? HD_BITRATE : Math.floor(hdBitrate / 1000)
1639
+                    limit
1639
                 } ];
1640
                 } ];
1640
             } else {
1641
             } else {
1641
                 // Clear the bandwidth limit in SDP when VP9 is no longer the preferred codec.
1642
                 // Clear the bandwidth limit in SDP when VP9 is no longer the preferred codec.

正在加载...
取消
保存