Reverts last commit.
This commit is contained in:
parent
edf3fc64b0
commit
613f2bf71f
1
app.js
1
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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue