mediasoup-client 3.23.0 comes with a new feature and a breaking change:
- [BREAKING CHANGE]
transport.produce(): RemoveheaderExtensionOptions. DeviceOptions: AddforcedRtpExtensionsoption, which is an object whose keys are validRtpHeaderExtensionUristrings and values are booleans indicating whether such a RTP extension should be enabled or disabled.- Currently it only works in latest Chrome, which is the only browser that supports the WebRTC RTP Extension Control API.
Usage example:
const mediasoupDevice = await mediasoupClient.Device.factory({
forcedRtpExtensions: {
'http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-time': true
},
});
- Related PR: Add forced RTP extensions API by ibc · Pull Request #379 · versatica/mediasoup-client · GitHub
- Fixed issue: `pc.setLocalDescription()` fails in Canary 149 with "Codec collision" error due to "abs-capture-time" extension · Issue #373 · versatica/mediasoup-client · GitHub
- Fixed issue: Use the header extension API · Issue #351 · versatica/mediasoup-client · GitHub