default to generation 0
This commit is contained in:
parent
d7f2d5f9eb
commit
a97cf7e0fa
|
@ -292,6 +292,8 @@ SDPUtil = {
|
||||||
candidate.port = elems[5];
|
candidate.port = elems[5];
|
||||||
// elems[6] => "typ"
|
// elems[6] => "typ"
|
||||||
candidate.type = elems[7];
|
candidate.type = elems[7];
|
||||||
|
|
||||||
|
candidate.generation = '0'; // default, may be overwritten below
|
||||||
for (i = 8; i < elems.length; i += 2) {
|
for (i = 8; i < elems.length; i += 2) {
|
||||||
switch (elems[i]) {
|
switch (elems[i]) {
|
||||||
case 'raddr':
|
case 'raddr':
|
||||||
|
|
Loading…
Reference in New Issue