Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Reverts last commit.

Yana Stamcheva613f2bf71f89
diff --git a/app.js b/app.js
index 683d9e8ac1..5e2ca3c603 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 3374f79ec5..2f2c8b8b2d 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);