Bläddra i källkod

Merge pull request #325 from bgrozev/configurable-suspend

feat: Allows to disable the suspend video
dev1
Дамян Минков 8 år sedan
förälder
incheckning
7bcd214e07
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4
    2
      modules/RTC/RTCUtils.js

+ 4
- 2
modules/RTC/RTCUtils.js Visa fil

@@ -825,8 +825,10 @@ var RTCUtils = {
825 825
 
826 826
                 // Allows sending of video to be suspended if the bandwidth
827 827
                 // estimation is too low.
828
-                this.pc_constraints.optional.push(
829
-                    {googSuspendBelowMinBitrate: true});
828
+                if (!options.disableSuspendVideo) {
829
+                    this.pc_constraints.optional.push(
830
+                        {googSuspendBelowMinBitrate: true});
831
+                }
830 832
 
831 833
                 if (options.useIPv6) {
832 834
                     // https://code.google.com/p/webrtc/issues/detail?id=2828

Laddar…
Avbryt
Spara