Browse Source

Reverts last commit.

master
Yana Stamcheva 11 years ago
parent
commit
613f2bf71f
2 changed files with 2 additions and 3 deletions
  1. 0
    1
      app.js
  2. 2
    2
      libs/strophejingle.bundle.js

+ 0
- 1
app.js View File

@@ -34,7 +34,6 @@ function init() {
34 34
     connection.connect(jid, document.getElementById('password').value, function (status) {
35 35
         if (status == Strophe.Status.CONNECTED) {
36 36
             console.log('connected');
37
-            connection.jingle.getStunAndTurnCredentials();
38 37
             if (RTC.browser == 'firefox') {
39 38
                 getUserMediaWithConstraints(['audio']);
40 39
             } else {

+ 2
- 2
libs/strophejingle.bundle.js View File

@@ -571,7 +571,7 @@ Strophe.addConnectionPlugin('jingle', {
571 571
         // validity have to be fetched before creating the peerconnection
572 572
         // TODO: implement refresh via updateIce as described in
573 573
         //      https://code.google.com/p/webrtc/issues/detail?id=1650
574
-        var self = this;
574
+        //var self = this;
575 575
         this.connection.sendIQ(
576 576
             $iq({type: 'get', to: this.connection.domain})
577 577
                 .c('services', {xmlns: 'urn:xmpp:extdisco:1'}).c('service', {host: 'turn.' + this.connection.domain}),
@@ -611,7 +611,7 @@ Strophe.addConnectionPlugin('jingle', {
611 611
                         break;
612 612
                     }
613 613
                 });
614
-                self.ice_config.iceServers = iceservers;
614
+                this.ice_config.iceServers = iceservers;
615 615
             },
616 616
             function (err) {
617 617
                 console.warn('getting turn credentials failed', err);

Loading…
Cancel
Save