Sfoglia il codice sorgente

config change; experimental ipv6 support for chrome canary

master
Philipp Hancke 11 anni fa
parent
commit
e0eca9b5f8
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 5
    0
      app.js
  2. 2
    0
      config.js

+ 5
- 0
app.js Vedi File

@@ -29,6 +29,11 @@ function init() {
29 29
         // for chrome, add multistream cap
30 30
     }
31 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 38
     var jid = document.getElementById('jid').value || config.hosts.domain || window.location.hostname;
34 39
 

+ 2
- 0
config.js Vedi File

@@ -5,6 +5,8 @@ var config = {
5 5
         bridge: 'jitsi-videobridge.lambada.jitsi.net' // FIXME: use XEP-0030
6 6
     },
7 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 10
     useNicks: false,
9 11
     bosh: '//lambada.jitsi.net/http-bind' // FIXME: use xep-0156 for that
10 12
 };

Loading…
Annulla
Salva