Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
get stun and turn credentials from server
Philipp Hanckeedf3fc64b0b1
diff --git a/app.js b/app.jsindex 5e2ca3c603..683d9e8ac1 100644--- a/app.js+++ b/app.js@@ -34,6 +34,7 @@ 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.jsindex 6cc916b418..3374f79ec5 100644--- a/libs/strophejingle.bundle.js+++ b/libs/strophejingle.bundle.js@@ -571,6 +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;this.connection.sendIQ($iq({type: 'get', to: this.connection.domain}).c('services', {xmlns: 'urn:xmpp:extdisco:1'}).c('service', {host: 'turn.' + this.connection.domain}),@@ -610,7 +611,7 @@ Strophe.addConnectionPlugin('jingle', {break;}});- this.ice_config.iceServers = iceservers;+ self.ice_config.iceServers = iceservers;},function (err) {console.warn('getting turn credentials failed', err);