Sfoglia il codice sorgente

feat: Enables googSuspendBelowMinBitrate.

tags/v0.0.2
Boris Grozev 9 anni fa
parent
commit
b3b7e5646c
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7
    2
      modules/RTC/RTCUtils.js

+ 7
- 2
modules/RTC/RTCUtils.js Vedi File

@@ -820,8 +820,13 @@ var RTCUtils = {
820 820
                             ? id
821 821
                             : SDPUtil.filter_special_chars(id));
822 822
                 };
823
-                // DTLS should now be enabled by default but..
824
-                this.pc_constraints = {'optional': [] };
823
+
824
+                this.pc_constraints = {optional: [] };
825
+
826
+                // Allows sending of video to be suspended if the bandwidth
827
+                // estimation is too low.
828
+                this.pc_constraints.optional.push(
829
+                    {googSuspendBelowMinBitrate: true});
825 830
 
826 831
                 if (options.useIPv6) {
827 832
                     // https://code.google.com/p/webrtc/issues/detail?id=2828

Loading…
Annulla
Salva