optionally query stun and turn servers using xep-0215

pull/43/head
Philipp Hancke 11 years ago
parent b0a2473692
commit 56eb1bda85
  1. 3
      app.js

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

Loading…
Cancel
Save