mediasoup now ships its own built-in BWE (bandwidth estimation) module!

mediasoup (Node) 3.32.0 and mediasoup (Rust) 0.33.0 have been released, and they come with a new built-in BWE (bandwidth estimation) module.

See the BWE task and all the involved PRs:

mediasoup no longer bundles a copy (and terribly outdated) of libwebrtc for BWE purposes. The new BWE module is written with mediasoup’s own classes and code: the bandwidth estimation orchestrators, the bitrate allocator and several other components have been implemented from scratch, while most of the core congestion control and bandwidth estimation logic is derived from the one in libwebrtc.

Changes

  • WebRtcTransportOptions and PlainTransportOptions: Add enableBwe, initialAvailableOutgoingBitrate, minOutgoingBitrate, maxOutgoingBitrate and maxIncomingBitrate.
  • Breaking change: WorkerSettings no longer takes libwebrtcFieldTrials.
  • Breaking change: The transport “bwe” trace event now reports desiredBitrate, minBitrate, maxBitrate and availableBitrate.

If I understand correctly, this introduces a native bandwidth estimation module in mediasoup, giving the SFU more direct control over bandwidth estimation and congestion adaptation without relying on the older bundled libwebrtc implementation.

This looks like a valuable improvement for real-time communication, especially when network conditions vary significantly between participants. Looking forward to exploring how it performs in real-world SFU deployments. Great work! Thank you! :heart: :sparkles: