|
|
|
|
35
|
connection.connect(jid, document.getElementById('password').value, function (status) {
|
35
|
connection.connect(jid, document.getElementById('password').value, function (status) {
|
36
|
if (status == Strophe.Status.CONNECTED) {
|
36
|
if (status == Strophe.Status.CONNECTED) {
|
37
|
console.log('connected');
|
37
|
console.log('connected');
|
|
|
38
|
+ if (config.useStunTurn) {
|
|
|
39
|
+ connection.jingle.getStunAndTurnCredentials();
|
|
|
40
|
+ }
|
38
|
if (RTC.browser == 'firefox') {
|
41
|
if (RTC.browser == 'firefox') {
|
39
|
getUserMediaWithConstraints(['audio']);
|
42
|
getUserMediaWithConstraints(['audio']);
|
40
|
} else {
|
43
|
} else {
|