Selaa lähdekoodia

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

dev1
Jaya Allamsetty 4 vuotta sitten
vanhempi
commit
baa78aca40
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      modules/RTC/TraceablePeerConnection.js

+ 2
- 1
modules/RTC/TraceablePeerConnection.js Näytä tiedosto

@@ -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…
Peruuta
Tallenna