Преглед изворни кода

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

Loading…
Откажи
Сачувај