Is there any API for setting b=AS (bandwidth limitation) without manual munging?

So I understand there are ways to set maxBitrate per-encoding for video. My use case is slightly different in that I mainly want to set bandwidth limitation for audio. I am aware of the Opus setting for maxAverageBitrate and have been employing it and it appears to generally work. However, I want to do some comparisons between restricting the bandwidth this way, vs b=AS line in the SDP. I have been inspecting the SDPs of other popular voice applications and this seems to be the typical approach as opposed to maxAverageBitrate. In order to understand the differences (if any) I am looking to see if there is a way to add this SDP line without having to dig and manually munge the SDP.


No, mediasoup-client does not provide an API to do that.