# What is the benefit of zeroRtpOnPause if I pause/resume producers often

**URL:** <https://mediasoup.discourse.group/t/what-is-the-benefit-of-zerortponpause-if-i-pause-resume-producers-often/2703>\
**Category:** Off Topic\
**Created:** [April 17, 2021, 5:50pm UTC](https://mediasoup.discourse.group/t/what-is-the-benefit-of-zerortponpause-if-i-pause-resume-producers-often/2703 "2021-04-17T17:50:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xplatsolutions](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/xplatsolutions/32/939_2.png) [@xplatsolutions](https://mediasoup.discourse.group/u/xplatsolutions)\
**Post date:** [April 17, 2021, 5:50pm UTC](https://mediasoup.discourse.group/t/what-is-the-benefit-of-zerortponpause-if-i-pause-resume-producers-often/2703/1 "2021-04-17T17:50:41Z")

</div>

Hi all,

I’d like to check with the community if there’s any major benefit to using `zeroRtpOnPause` when creating a `Producer`;

In our web app implementation currently, pause/resume producers happen if video/audio needed based on user actions. When that happens, in turn, all consumers for the producer will pause/resume as well and the client will be signaled for appropriate UX.

If I set `zeroRtpOnPause=true` will it help with bandwidth or better video experience?

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [April 17, 2021, 6:00pm UTC](https://mediasoup.discourse.group/t/what-is-the-benefit-of-zerortponpause-if-i-pause-resume-producers-often/2703/2 "2021-04-17T18:00:25Z")

</div>

Id `zeroRtpOnPause=true` mediasoup-client does not send ANY RTP packet to mediasoup when you mute the producer. Otherwise it will send silence audio packets or black video frames (at much lower rate, of course).

My recommendation is: do not use it since we replace the `rtpSender.track` with `null` when enabled and muted and then restore the original track when resumed, and somehow it produces delayed audio due to some wrong behavior in libwebrtc.

---

<div class="post-metadata">

**Author:** ![xplatsolutions](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/xplatsolutions/32/939_2.png) [@xplatsolutions](https://mediasoup.discourse.group/u/xplatsolutions)\
**Post date:** [April 17, 2021, 6:02pm UTC](https://mediasoup.discourse.group/t/what-is-the-benefit-of-zerortponpause-if-i-pause-resume-producers-often/2703/3 "2021-04-17T18:02:06Z")

</div>

Thanks for the reply! I will keep the default value.

---

<div class="post-metadata">

**Author:** ![dimoochka](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/dimoochka/32/858_2.png) [@dimoochka](https://mediasoup.discourse.group/u/dimoochka)\
**Post date:** [April 20, 2021, 12:05am UTC](https://mediasoup.discourse.group/t/what-is-the-benefit-of-zerortponpause-if-i-pause-resume-producers-often/2703/4 "2021-04-20T00:05:05Z")

</div>

@ibc I noticed this behavior too! I’ve spent a lot of time working around this bug. It only seems to be an issue with video tracks, I haven’t found any issue with using this option on audio tracks. However the benefit from pausing audio is small especially with how optimized DTX is already.

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [April 20, 2021, 7:48am UTC](https://mediasoup.discourse.group/t/what-is-the-benefit-of-zerortponpause-if-i-pause-resume-producers-often/2703/5 "2021-04-20T07:48:44Z")

</div>

Agreed
