Selaa lähdekoodia

config change; experimental ipv6 support for chrome canary

master
Philipp Hancke 11 vuotta sitten
vanhempi
commit
e0eca9b5f8
2 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 5
    0
      app.js
  2. 2
    0
      config.js

+ 5
- 0
app.js Näytä tiedosto

29
         // for chrome, add multistream cap
29
         // for chrome, add multistream cap
30
     }
30
     }
31
     connection.jingle.pc_constraints = RTC.pc_constraints;
31
     connection.jingle.pc_constraints = RTC.pc_constraints;
32
+    if (config.useIPv6) {
33
+        // https://code.google.com/p/webrtc/issues/detail?id=2828
34
+        if (!connection.jingle.pc_constraints.optional) connection.jingle.pc_constraints.optional = [];
35
+        connection.jingle.pc_constraints.optional.push({googIPv6: true});
36
+    }
32
 
37
 
33
     var jid = document.getElementById('jid').value || config.hosts.domain || window.location.hostname;
38
     var jid = document.getElementById('jid').value || config.hosts.domain || window.location.hostname;
34
 
39
 

+ 2
- 0
config.js Näytä tiedosto

5
         bridge: 'jitsi-videobridge.lambada.jitsi.net' // FIXME: use XEP-0030
5
         bridge: 'jitsi-videobridge.lambada.jitsi.net' // FIXME: use XEP-0030
6
     },
6
     },
7
 //  getroomnode: function (path) { return 'someprefixpossiblybasedonpath'; },
7
 //  getroomnode: function (path) { return 'someprefixpossiblybasedonpath'; },
8
+//  useStunTurn: true, // use XEP-0215 to fetch STUN and TURN server
9
+//  useIPv6: true, // ipv6 support. use at your own risk
8
     useNicks: false,
10
     useNicks: false,
9
     bosh: '//lambada.jitsi.net/http-bind' // FIXME: use xep-0156 for that
11
     bosh: '//lambada.jitsi.net/http-bind' // FIXME: use xep-0156 for that
10
 };
12
 };

Loading…
Peruuta
Tallenna