Ver código fonte

Adds config.adaptiveSimulcast, a new bool option that optionally enables simulcast adaptivity.

master
George Politis 10 anos atrás
pai
commit
ee44ed5749
3 arquivos alterados com 8 adições e 1 exclusões
  1. 1
    0
      config.js
  2. 1
    1
      index.html
  3. 6
    0
      libs/colibri/colibri.focus.js

+ 1
- 0
config.js Ver arquivo

@@ -21,6 +21,7 @@ var config = {
21 21
     openSctp: true, // Toggle to enable/disable SCTP channels
22 22
     channelLastN: -1, // The default value of the channel attribute last-n.
23 23
     adaptiveLastN: false,
24
+    adaptiveSimulcast: false,
24 25
     useRtcpMux: true,
25 26
     useBundle: true,
26 27
     enableRecording: false,

+ 1
- 1
index.html Ver arquivo

@@ -22,7 +22,7 @@
22 22
     <script src="libs/strophe/strophe.jingle.sessionbase.js?v=1"></script>
23 23
     <script src="libs/strophe/strophe.jingle.session.js?v=2"></script>
24 24
     <script src="libs/strophe/strophe.util.js"></script>
25
-    <script src="libs/colibri/colibri.focus.js?v=10"></script><!-- colibri focus implementation -->
25
+    <script src="libs/colibri/colibri.focus.js?v=11"></script><!-- colibri focus implementation -->
26 26
     <script src="libs/colibri/colibri.session.js?v=1"></script>
27 27
     <script src="libs/jquery-ui.js"></script>
28 28
     <script src="libs/rayo.js?v=1"></script>

+ 6
- 0
libs/colibri/colibri.focus.js Ver arquivo

@@ -299,6 +299,9 @@ ColibriFocus.prototype._makeConference = function (errorCallback) {
299 299
                 if (config.adaptiveLastN) {
300 300
                     elemAttrs['adaptive-last-n'] = 'true';
301 301
                 }
302
+                if (config.adaptiveSimulcast) {
303
+                    elemAttrs['adaptive-simulcast'] = 'true';
304
+                }
302 305
             }
303 306
         }
304 307
 
@@ -848,6 +851,9 @@ ColibriFocus.prototype.addNewParticipant = function (peer) {
848 851
                 if (config.adaptiveLastN) {
849 852
                     elemAttrs['adaptive-last-n'] = 'true';
850 853
                 }
854
+                if (config.adaptiveSimulcast) {
855
+                    elemAttrs['adaptive-simulcast'] = 'true';
856
+                }
851 857
             }
852 858
         }
853 859
 

Carregando…
Cancelar
Salvar