# Mediasoup Bitrate limit issue with react-native

**URL:** <https://mediasoup.discourse.group/t/mediasoup-bitrate-limit-issue-with-react-native/3352>\
**Category:** mediasoup libraries\
**Created:** [September 24, 2021, 1:05pm UTC](https://mediasoup.discourse.group/t/mediasoup-bitrate-limit-issue-with-react-native/3352 "2021-09-24T13:05:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asaad](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@Asaad](https://mediasoup.discourse.group/u/Asaad)\
**Post date:** [September 24, 2021, 1:05pm UTC](https://mediasoup.discourse.group/t/mediasoup-bitrate-limit-issue-with-react-native/3352/1 "2021-09-24T13:05:18Z")

</div>

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.
