Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
const msExtendedRtpCapabilities = MediasoupOrtc.getExtendedRtpCapabilities(
kmsRtpCapabilities,
global.mediasoup.router.rtpCapabilities
);
console.log(
"msExtendedRtpCapabilities: %s",
JSON.stringify(msExtendedRtpCapabilities, null, 2)
);
const kmsRtpSendParameters = MediasoupOrtc.getSendingRtpParameters(
"video",
msExtendedRtpCapabilities
);
kmsRtpSendParameters.encodings = MediasoupRtpUtils.getRtpEncodings({
sdpObject: kmsSdpAnswerObj,
kind: "video"
});
console.log(
"kmsRtpSendParameters: %s",
JSON.stringify(kmsRtpSendParameters, null, 2)
);
// mediasoup RTP producer (Receive media from Kurento)
// ---------------------------------------------------
const msProducer = await msTransport.produce({
kind: "video",
rtpParameters: kmsRtpSendParameters,
paused: false
});