Comparing version 2.3.0 to 2.4.0
{ | ||
"name": "sdp", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "SDP parsing and serialization utilities", | ||
@@ -5,0 +5,0 @@ "main": "sdp.js", |
15
sdp.js
@@ -636,3 +636,16 @@ /* eslint-env node */ | ||
SDPUtils.parseMLine = function(mediaSection) { | ||
var lines = SDPUtils.splitLines(mediaSection); | ||
var mline = lines[0].split(' '); | ||
return { | ||
kind: mline[0].substr(2), | ||
port: parseInt(mline[1], 10), | ||
protocol: mline[2], | ||
fmt: mline.slice(3).join(' ') | ||
}; | ||
}; | ||
// Expose public methods. | ||
module.exports = SDPUtils; | ||
if (typeof module === 'object') { | ||
module.exports = SDPUtils; | ||
} |
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
23932
6
593