Pārlūkot izejas kodu

Merge pull request #325 from bgrozev/configurable-suspend

feat: Allows to disable the suspend video
tags/v0.0.2
Дамян Минков 8 gadus atpakaļ
vecāks
revīzija
7bcd214e07
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4
    2
      modules/RTC/RTCUtils.js

+ 4
- 2
modules/RTC/RTCUtils.js Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt