First off: I know mediasoup v2 is not supported anymore, so I understand if this question is just ignored. I wanted to try my luck though :).
Background: I still have an Android implementation for mediasoup that had the issue that the bitrate never went beyond 2.5Mbit/s. I’m doing calls with the H264 codec if that is relevant. Upon further analysis I noticed that this is the case because the b=AS default setting of the SDP is essentially linked to a percentage of the available bandwidth. So to increase that, I added a b=AS line to all SDPs to increase the total bandwidth in my Android SDPs.
The problem is: The moment I am doing this, the initial bitrate seems to drop. So instead of starting with 2.5Mbit/s and staying there, it starts with 0.1Mbit/s and slowly crawls up until it reaches the maximum after about a minute.
For direct calls, this was solved with the x-google-start-bitrate flag, but this unfortunately doesn’t seem to be the case with mediasoup despite providing this flag in the codec’s parameters.
Upon further tests it seemed like doing the same actually works perfectly fine with mediasoup v3 as it specifically allows setting an initial outgoing bitrate (I suppose that is the relevant part). I also noticed that the Transport.cpp seems to have stuff regarding that that was not implemented yet in v2.
So tl;dr and the final question: Was there already a way to get an initial bitrate in with mediasoup v2, or is this a new feature of v3 and I’d have no easy way if I want to update an old v2 project with this functionality? Even if the answer is “you have to update” I’d at least know for sure :).