Explorar el Código

Converts ssltcp candidate to tcp one on FF.

master
damencho hace 9 años
padre
commit
1c19f977ad
Se han modificado 2 ficheros con 11 adiciones y 5 borrados
  1. 8
    2
      modules/xmpp/SDPUtil.js
  2. 3
    3
      package.json

+ 8
- 2
modules/xmpp/SDPUtil.js Ver fichero

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

+ 3
- 3
package.json Ver fichero

27
     "jssha": "1.5.0",
27
     "jssha": "1.5.0",
28
     "pako": "*",
28
     "pako": "*",
29
     "retry": "0.6.1",
29
     "retry": "0.6.1",
30
-    "sdp-interop": "0.1.10",
31
-    "sdp-simulcast": "0.1.2",
32
-    "sdp-transform": "1.4.1",
30
+    "sdp-interop": "0.1.11",
31
+    "sdp-simulcast": "0.1.3",
32
+    "sdp-transform": "1.5.*",
33
     "socket.io-client": "1.3.6",
33
     "socket.io-client": "1.3.6",
34
     "strophe": "^1.2.2",
34
     "strophe": "^1.2.2",
35
     "strophejs-plugins": "^0.0.6",
35
     "strophejs-plugins": "^0.0.6",

Loading…
Cancelar
Guardar