sdp-jingle-json
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -119,7 +119,14 @@ var SENDERS = require('./senders'); | ||
if (desc.sources && desc.sources.length) { | ||
(desc.sources[0].parameters || []).forEach(function (param) { | ||
if (param.key === 'msid') { | ||
sdp.push('a=msid:' + param.value); | ||
} | ||
var streams = {}; | ||
desc.sources.forEach(function (source) { | ||
(source.parameters || []).forEach(function (param) { | ||
if (param.key === 'msid') { | ||
streams[param.value] = 1; | ||
} | ||
}); | ||
}); | ||
streams = Object.keys(streams); | ||
if (streams.length === 1) { | ||
sdp.push('a=msid:' + streams[0]); | ||
} | ||
} | ||
@@ -126,0 +133,0 @@ |
{ | ||
"name": "sdp-jingle-json", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "A parser/serializer for SDP to JSON. Useful for converting SDP to other formats like Jingle for WebRTC signalling", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
59931
1395