Comparing version 2.7.3 to 2.7.4
{ | ||
"name": "sdp", | ||
"version": "2.7.3", | ||
"version": "2.7.4", | ||
"description": "SDP parsing and serialization utilities", | ||
@@ -5,0 +5,0 @@ "main": "sdp.js", |
@@ -405,5 +405,7 @@ /* eslint-env node */ | ||
caps.headerExtensions.forEach(function(extension) { | ||
sdp += SDPUtils.writeExtmap(extension); | ||
}); | ||
if (caps.headerExtensions) { | ||
caps.headerExtensions.forEach(function(extension) { | ||
sdp += SDPUtils.writeExtmap(extension); | ||
}); | ||
} | ||
// FIXME: write fecMechanisms. | ||
@@ -410,0 +412,0 @@ return sdp; |
@@ -799,3 +799,3 @@ /* jshint node: true */ | ||
it('does not generate extmap lines if there are no headerExtensions', () => { | ||
it('does not generate extmap lines if headerExtensions is empty', () => { | ||
parameters.headerExtensions = []; | ||
@@ -805,2 +805,8 @@ const serialized = SDPUtils.writeRtpDescription(kind, parameters); | ||
}); | ||
it('does not generate extmap lines if there are no headerExtensions', () => { | ||
delete parameters.headerExtensions; | ||
const serialized = SDPUtils.writeRtpDescription(kind, parameters); | ||
expect(serialized).not.to.contain('a=extmap:'); | ||
}); | ||
}); | ||
@@ -807,0 +813,0 @@ |
53169
1364