Sfoglia il codice sorgente

Merge pull request #173 from jitsi/icetransports-relay

Icetransports relay
j8
Philipp Hancke 10 anni fa
parent
commit
6a12d817f8
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1
    0
      app.js
  2. 1
    1
      libs/strophe/strophe.jingle.js

+ 1
- 0
app.js Vedi File

@@ -108,6 +108,7 @@ function connect(jid, password) {
108 108
         // for chrome, add multistream cap
109 109
     }
110 110
     connection.jingle.pc_constraints = RTC.pc_constraints;
111
+    connection.jingle.ice_config.iceTransports = 'relay';
111 112
     if (config.useIPv6) {
112 113
         // https://code.google.com/p/webrtc/issues/detail?id=2828
113 114
         if (!connection.jingle.pc_constraints.optional) connection.jingle.pc_constraints.optional = [];

+ 1
- 1
libs/strophe/strophe.jingle.js Vedi File

@@ -3,7 +3,7 @@ Strophe.addConnectionPlugin('jingle', {
3 3
     connection: null,
4 4
     sessions: {},
5 5
     jid2session: {},
6
-    ice_config: {iceServers: []},
6
+    ice_config: {iceServers: [], iceTransports: 'all'},
7 7
     pc_constraints: {},
8 8
     media_constraints: {
9 9
         mandatory: {

Loading…
Annulla
Salva