Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "sdp", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "SDP parsing and serialization utilities", | ||
@@ -5,0 +5,0 @@ "main": "sdp.js", |
17
sdp.js
@@ -345,2 +345,11 @@ /* eslint-env node */ | ||
}); | ||
var maxptime = 0; | ||
caps.codecs.forEach(function(codec) { | ||
if (codec.maxptime > maxptime) { | ||
maxptime = codec.maxptime; | ||
} | ||
}); | ||
if (maxptime > 0) { | ||
sdp += 'a=maxptime:' + maxptime + '\r\n'; | ||
} | ||
sdp += 'a=rtcp-mux\r\n'; | ||
@@ -467,2 +476,10 @@ | ||
' ' + msid; | ||
if (transceiver.sendEncodingParameters[0].rtx) { | ||
sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc + | ||
' ' + msid; | ||
sdp += 'a=ssrc-group:FID ' + | ||
transceiver.sendEncodingParameters[0].ssrc + ' ' + | ||
transceiver.sendEncodingParameters[0].rtx.ssrc + | ||
'\r\n'; | ||
} | ||
} | ||
@@ -469,0 +486,0 @@ // FIXME: this should be written by writeRtpDescription. |
@@ -174,3 +174,3 @@ /* jshint node: true */ | ||
t.ok(data[1].maxBitrate === 512, 'parsed b=AS:512'); | ||
t.ok(data[1].maxBitrate === 512, 'parsed b=TIAS:512'); | ||
t.end(); | ||
@@ -177,0 +177,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24799
636