Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
//Get sending encodings
const encodings = [];
//Check if it has simulcast info
if (md.simulcast)
{
//Create simulcast object
const simulcast = new SimulcastInfo();
//Check dir1 attr
if (md.simulcast.dir1)
{
//Get direction
const direction = DirectionWay.byValue (md.simulcast.dir1);
//Parse simulcast streamlist
const list = SDPTransform.parseSimulcastStreamList(md.simulcast.list1);
//for each alternative stream set
for (let j=0; j
const alternatives = [];
//For each alternative
for (let k=0; k