From 56eb1bda852611959adfa0768dd78a3491dfaa06 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Sun, 26 Jan 2014 13:18:12 +0100 Subject: [PATCH] optionally query stun and turn servers using xep-0215 --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index cf5c5c07f..ce0061ec5 100644 --- a/app.js +++ b/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 {