Bläddra i källkod

optionally query stun and turn servers using xep-0215

j8
Philipp Hancke 11 år sedan
förälder
incheckning
56eb1bda85
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      app.js

+ 3
- 0
app.js Visa fil

35
     connection.connect(jid, document.getElementById('password').value, function (status) {
35
     connection.connect(jid, document.getElementById('password').value, function (status) {
36
         if (status == Strophe.Status.CONNECTED) {
36
         if (status == Strophe.Status.CONNECTED) {
37
             console.log('connected');
37
             console.log('connected');
38
+            if (config.useStunTurn) {
39
+                connection.jingle.getStunAndTurnCredentials();
40
+            }
38
             if (RTC.browser == 'firefox') {
41
             if (RTC.browser == 'firefox') {
39
                 getUserMediaWithConstraints(['audio']);
42
                 getUserMediaWithConstraints(['audio']);
40
             } else {
43
             } else {

Laddar…
Avbryt
Spara