Browse Source

Converts ssltcp candidate to tcp one on FF.

dev1
damencho 10 years ago
parent
commit
b442f2f8cc
2 changed files with 11 additions and 5 deletions
  1. 8
    2
      modules/xmpp/SDPUtil.js
  2. 3
    3
      package.json

+ 8
- 2
modules/xmpp/SDPUtil.js View File

312
         line += ' ';
312
         line += ' ';
313
         line += cand.getAttribute('component');
313
         line += cand.getAttribute('component');
314
         line += ' ';
314
         line += ' ';
315
-        line += cand.getAttribute('protocol'); //.toUpperCase(); // chrome M23 doesn't like this
315
+
316
+        var protocol = cand.getAttribute('protocol');
317
+        // use tcp candidates for FF
318
+        if (RTCBrowserType.isFirefox() && protocol.toLowerCase() == 'ssltcp') {
319
+            protocol = 'tcp';
320
+        }
321
+
316
         line += ' ';
322
         line += ' ';
317
         line += cand.getAttribute('priority');
323
         line += cand.getAttribute('priority');
318
         line += ' ';
324
         line += ' ';
339
                 }
345
                 }
340
                 break;
346
                 break;
341
         }
347
         }
342
-        if (cand.getAttribute('protocol').toLowerCase() == 'tcp') {
348
+        if (protocol.toLowerCase() == 'tcp') {
343
             line += 'tcptype';
349
             line += 'tcptype';
344
             line += ' ';
350
             line += ' ';
345
             line += cand.getAttribute('tcptype');
351
             line += cand.getAttribute('tcptype');

+ 3
- 3
package.json View File

17
   "dependencies": {
17
   "dependencies": {
18
     "events": "*",
18
     "events": "*",
19
     "pako": "*",
19
     "pako": "*",
20
-    "sdp-interop": "0.1.10",
21
-    "sdp-transform": "1.4.1",
22
-    "sdp-simulcast": "0.1.2",
20
+    "sdp-interop": "0.1.11",
21
+    "sdp-transform": "1.5.*",
22
+    "sdp-simulcast": "0.1.3",
23
     "async": "0.9.0",
23
     "async": "0.9.0",
24
     "retry": "0.6.1",
24
     "retry": "0.6.1",
25
     "jssha": "1.5.0",
25
     "jssha": "1.5.0",

Loading…
Cancel
Save