Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
om.fmtp.filter((fmtp) => fmtp.payload === codecPayloadType).forEach((fmtp) =>
{
let params = sdpTransform.parseFmtpConfig(fmtp.config);
for (let k in params)
codecParameters[k] = params[k];
});
}
clockRate : rtp.rate,
rtcpFeedback : [],
parameters : {}
};
if (rtp.encoding > 1)
codec.numChannels = rtp.encoding;
mapCodecs.set(rtp.payload, codec);
}
if (parsedMedia.fmtp)
{
for (const fmtp of parsedMedia.fmtp)
{
const params = sdpTransform.parseFmtpConfig(fmtp.config);
const codec = mapCodecs.get(fmtp.payload);
if (!codec)
continue;
codec.parameters = params;
}
}
if (parsedMedia.rtcpFb)
{
for (const fb of parsedMedia.rtcpFb)
{
const codec = mapCodecs.get(fb.payload);
if (!codec)
clockRate : rtp.rate,
rtcpFeedback : [],
parameters : {}
};
if (rtp.encoding > 1)
codec.numChannels = rtp.encoding;
mapCodecs.set(rtp.payload, codec);
}
if (parsedMedia.fmtp)
{
for (const fmtp of parsedMedia.fmtp)
{
const params = sdpTransform.parseFmtpConfig(fmtp.config);
const codec = mapCodecs.get(fmtp.payload);
if (!codec)
continue;
codec.parameters = params;
}
}
if (parsedMedia.rtcpFb)
{
for (const fb of parsedMedia.rtcpFb)
{
const codec = mapCodecs.get(fb.payload);
if (!codec)
clockRate : rtp.rate,
rtcpFeedback : [],
parameters : {}
};
if (rtp.encoding > 1)
codec.numChannels = rtp.encoding;
mapCodecs.set(rtp.payload, codec);
}
if (parsedMedia.fmtp)
{
for (const fmtp of parsedMedia.fmtp)
{
const params = sdpTransform.parseFmtpConfig(fmtp.config);
const codec = mapCodecs.get(fmtp.payload);
if (!codec)
continue;
codec.parameters = params;
}
}
if (parsedMedia.rtcpFb)
{
for (const fb of parsedMedia.rtcpFb)
{
const codec = mapCodecs.get(fb.payload);
if (!codec)