Hello, I’ve been trying to set a limit for the bitrate produced from mediasoup device, but it didn’t work. I did use multiple approaches still didn’t get any result.
Using the webrtc-internal observers on google chrome I noticed that the bitrates received by the other client are reaching for example 2Mbit/s which is not suitable for me.
Below two of the approaches I’ve used:
---------------------------------First one ---------------------------------
const videoTrack = localStream.getVideoTracks()[0];
var params = { track: videoTrack, zeroRtpOnPause: true, appData: { mediaType: ‘camera’ }, disableTrackOnPause: true };
cameraProducer = await producerLocalTransport.produce(params);
cameraProducer.setRtpEncodingParameters({ active: true, maxBitrate: 50000 });
---------------------------------Second one------------------------------
const videoTrack = localStream.getVideoTracks()[0];
var params = { track: videoTrack,encodings:[{maxBitrate: 50000}], zeroRtpOnPause: true, appData: { mediaType: ‘camera’ }, disableTrackOnPause: true };
cameraProducer = await producerLocalTransport.produce(params);
can anyone help? Thanks in advance.