ソースを参照

optionally query stun and turn servers using xep-0215

j8
Philipp Hancke 11年前
コミット
56eb1bda85
1個のファイルの変更3行の追加0行の削除
  1. 3
    0
      app.js

+ 3
- 0
app.js ファイルの表示

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

読み込み中…
キャンセル
保存