Change bitrate of client side stream

Hey,

Thank for this awesome library.

I just wanted to know how can I change bitrate of video streams? This article suggest better optimisation: http://www.rtcbits.com/2018/10/measuring-webrtc-video-quality-for.html

I shall be grateful if I could optimise the streams client side by reducing bitrates and I would personally avoid using server side CPU to achieve the same.

Thank you in advance!

There are various ways to change bitrate in client side. Please read the API doc and the WebRTC API.

I went through docs including codecs and as far I can understand I need to change RTP Codec Parameters, Am I right? https://mediasoup.org/documentation/v3/mediasoup/rtp-parameters-and-capabilities/#RtpCodecParameters

If so, I am unable to find anything related to changing bitrate.

Because you have ignored the “read the WebRTC API” response I wrote above.

and then:

  • producer.rtpSender.setParameters(...)

and then read the corresponding API in the WebRTC 1.0 spec.