optionally query stun and turn servers using xep-0215
This commit is contained in:
parent
b0a2473692
commit
56eb1bda85
3
app.js
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…
Reference in New Issue