From 613f2bf71f89d2050c34e5861f5faeb6cb390b3f Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Mon, 20 Jan 2014 22:36:46 +0100 Subject: [PATCH] Reverts last commit. --- app.js | 1 - libs/strophejingle.bundle.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 683d9e8ac..5e2ca3c60 100644 --- a/app.js +++ b/app.js @@ -34,7 +34,6 @@ function init() { connection.connect(jid, document.getElementById('password').value, function (status) { if (status == Strophe.Status.CONNECTED) { console.log('connected'); - connection.jingle.getStunAndTurnCredentials(); if (RTC.browser == 'firefox') { getUserMediaWithConstraints(['audio']); } else { diff --git a/libs/strophejingle.bundle.js b/libs/strophejingle.bundle.js index 3374f79ec..2f2c8b8b2 100644 --- a/libs/strophejingle.bundle.js +++ b/libs/strophejingle.bundle.js @@ -571,7 +571,7 @@ Strophe.addConnectionPlugin('jingle', { // validity have to be fetched before creating the peerconnection // TODO: implement refresh via updateIce as described in // https://code.google.com/p/webrtc/issues/detail?id=1650 - var self = this; + //var self = this; this.connection.sendIQ( $iq({type: 'get', to: this.connection.domain}) .c('services', {xmlns: 'urn:xmpp:extdisco:1'}).c('service', {host: 'turn.' + this.connection.domain}), @@ -611,7 +611,7 @@ Strophe.addConnectionPlugin('jingle', { break; } }); - self.ice_config.iceServers = iceservers; + this.ice_config.iceServers = iceservers; }, function (err) { console.warn('getting turn credentials failed', err);