mediasoup 3.18.0 has been released. It comes with some changes related to TypeScript types (that are also applied in mediasoup-client 3.14.0);
preferredPayloadType
inRtpCodecCapability
is no longer optional (now it’s mandatory as it should always have been).- New type
RouterRtpCodecCapability
which is the same asRtpCodecCapability
but withpreferredPayloadType
as optional field. This is the type given toworker.createRouter({ mediaCodecs })
in themediaCodecs
array. supportedRtpCapabilities
now haveRouterRtpCapabilities
as type, which is the same asRtpCapabilities
but thecodecs
array hasRouterRtpCodecCapability
entries rather thanRtpCodecCapability
.
Everything is docomented in the website: