chrome canary and firefox dont include a=

This commit is contained in:
Philipp Hancke 2014-07-01 09:06:23 +02:00
parent f193d0d51d
commit 3f6c048426
1 changed files with 3 additions and 1 deletions

View File

@ -283,7 +283,9 @@ SDPUtil = {
candidateToJingle: function (line) {
// a=candidate:2979166662 1 udp 2113937151 192.168.2.100 57698 typ host generation 0
// <candidate component=... foundation=... generation=... id=... ip=... network=... port=... priority=... protocol=... type=.../>
if (line.substring(0, 12) != 'a=candidate:') {
if (line.indexOf('candidate:') == 0) {
line = 'a=' + line;
} else if (line.substring(0, 12) != 'a=candidate:') {
console.log('parseCandidate called with a line that is not a candidate line');
console.log(line);
return null;