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);
preferredPayloadTypeinRtpCodecCapabilityis no longer optional (now it’s mandatory as it should always have been).- New type
RouterRtpCodecCapabilitywhich is the same asRtpCodecCapabilitybut withpreferredPayloadTypeas optional field. This is the type given toworker.createRouter({ mediaCodecs })in themediaCodecsarray. supportedRtpCapabilitiesnow haveRouterRtpCapabilitiesas type, which is the same asRtpCapabilitiesbut thecodecsarray hasRouterRtpCodecCapabilityentries rather thanRtpCodecCapability.
Everything is docomented in the website: