소스 검색

use all in lib, restrict to relay in app

j8
Philipp Hancke 10 년 전
부모
커밋
b268c7fdc5
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    0
      app.js
  2. 1
    1
      libs/strophe/strophe.jingle.js

+ 1
- 0
app.js 파일 보기

108
         // for chrome, add multistream cap
108
         // for chrome, add multistream cap
109
     }
109
     }
110
     connection.jingle.pc_constraints = RTC.pc_constraints;
110
     connection.jingle.pc_constraints = RTC.pc_constraints;
111
+    connection.jingle.ice_config.iceTransports = 'relay';
111
     if (config.useIPv6) {
112
     if (config.useIPv6) {
112
         // https://code.google.com/p/webrtc/issues/detail?id=2828
113
         // https://code.google.com/p/webrtc/issues/detail?id=2828
113
         if (!connection.jingle.pc_constraints.optional) connection.jingle.pc_constraints.optional = [];
114
         if (!connection.jingle.pc_constraints.optional) connection.jingle.pc_constraints.optional = [];

+ 1
- 1
libs/strophe/strophe.jingle.js 파일 보기

3
     connection: null,
3
     connection: null,
4
     sessions: {},
4
     sessions: {},
5
     jid2session: {},
5
     jid2session: {},
6
-    ice_config: {iceServers: [], iceTransports: 'relay'},
6
+    ice_config: {iceServers: [], iceTransports: 'all'},
7
     pc_constraints: {},
7
     pc_constraints: {},
8
     media_constraints: {
8
     media_constraints: {
9
         mandatory: {
9
         mandatory: {

Loading…
취소
저장