Просмотр исходного кода

feat: Enables googSuspendBelowMinBitrate.

master
Boris Grozev 9 лет назад
Родитель
Сommit
b3b7e5646c
1 измененных файлов: 7 добавлений и 2 удалений
  1. 7
    2
      modules/RTC/RTCUtils.js

+ 7
- 2
modules/RTC/RTCUtils.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить