# consumer.observer.on(“pause”, fn()) event is not emitting.

**URL:** <https://mediasoup.discourse.group/t/consumer-observer-on-pause-fn-event-is-not-emitting/2216>\
**Category:** mediasoup libraries\
**Created:** [January 6, 2021, 6:38am UTC](https://mediasoup.discourse.group/t/consumer-observer-on-pause-fn-event-is-not-emitting/2216 "2021-01-06T06:38:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawan](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pawan](https://mediasoup.discourse.group/u/pawan)\
**Post date:** [January 6, 2021, 6:38am UTC](https://mediasoup.discourse.group/t/consumer-observer-on-pause-fn-event-is-not-emitting/2216/1 "2021-01-06T06:38:07Z")

</div>

I am pausing the stream with producer.pause() method of client A and client B is consuming that video. on pausing client B is getting black frame of video, which is good but consumer.observer.on(“pause”, fn()) event not emitting on client B. Am I doing anything wrong? or I have to use my own signaling to know that client A video has been paused.

---

<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:** [January 6, 2021, 8:12am UTC](https://mediasoup.discourse.group/t/consumer-observer-on-pause-fn-event-is-not-emitting/2216/2 "2021-01-06T08:12:52Z")

</div>

Clarify whether you mean mediasoup or mediasoup-client.

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/nazar-pc/32/369_2.png) [@nazar-pc](https://mediasoup.discourse.group/u/nazar-pc)\
**Post date:** [January 6, 2021, 9:03am UTC](https://mediasoup.discourse.group/t/consumer-observer-on-pause-fn-event-is-not-emitting/2216/3 "2021-01-06T09:03:03Z")

</div>

Server-side `consumer.observer.on(“pause”, fn())` will only be fired when you call `consumer.pause()` or corresponding server-side producer is paused. If you pause client-side producer, it will just stop sending media, there will be no event on the server (but score will go down to 0 after a bit) or on client-side consumer.

Client-side `consumer.observer.on(“pause”, fn())` is only really fired when you call `consumer.pause()`, so documentation there could be improved indeed.

Also you have full access to source code, just go to `Consumer.ts` and see what can trigger `pause` event yourself.

If you pause client-side producer and want to know about this on the other client, you need to send this information somehow through signaling layer.

---

<div class="post-metadata">

**Author:** ![pawan](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pawan](https://mediasoup.discourse.group/u/pawan)\
**Post date:** [January 6, 2021, 9:18am UTC](https://mediasoup.discourse.group/t/consumer-observer-on-pause-fn-event-is-not-emitting/2216/4 "2021-01-06T09:18:09Z")

</div>

> [@](#):
>
> Client-side `consumer.observer.on(“pause”, fn())` is only really fired when you call `consumer.pause()`, so documentation there could be improved indeed.
> 
> If you pause client-side producer and want to know about this on the other client, you need to send this information somehow through signaling layer.

I am using client-side consumer and now my doubt has been cleared. Thanks.

---

<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:** [January 6, 2021, 10:12am UTC](https://mediasoup.discourse.group/t/consumer-observer-on-pause-fn-event-is-not-emitting/2216/5 "2021-01-06T10:12:54Z")

</div>

> [@nazar-pc](#):
>
> Client-side `consumer.observer.on(“pause”, fn())` is only really fired when you call `consumer.pause()` , so documentation there could be improved indeed.

The documentation clearly says that those events must be signaled by the app. We can not clarify it for every event.
