# graying out of the remote video

**URL:** <https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706>\
**Category:** mediasoup-demo\
**Created:** [March 29, 2020, 8:41am UTC](https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706 "2020-03-29T08:41:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnito2](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@magnito2](https://mediasoup.discourse.group/u/magnito2)\
**Post date:** [March 29, 2020, 8:41am UTC](https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706/1 "2020-03-29T08:41:29Z")

</div>

Hi, I have a problem similar to [remote video sometimes becomes gray](https://mediasoup.discourse.group/t/remote-video-sometimes-become-gray)  
I cant say I’ve fully read and understood the docs, might have missed something, but that happens when `consumer.on('layerschange')` event fires with both `spartialLayers` and `temporalLayers` as `null`.  
But that is how far my knowledge goes, so I was hoping you could point me at where else to look. I am running the demo with configurations still at default.  
I suspect my network, but the problem reoccur even when running on LAN.

---

<div class="post-metadata">

**Author:** ![jmillan](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/jmillan/32/9_2.png) [@jmillan](https://mediasoup.discourse.group/u/jmillan)\
**Post date:** [March 29, 2020, 3:08pm UTC](https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706/2 "2020-03-29T15:08:17Z")

</div>

Hi,

You are looking for the Consumer `layerschange` event documentation. It explicitly says under which conditions this event fires and in what kind of consumers.

> **[mediasoup :: API](https://mediasoup.org/documentation/v3/mediasoup/api/#consumer-on-layerschange)**
>
> Cutting Edge WebRTC Video Conferencing

---

<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:** [March 29, 2020, 7:47pm UTC](https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706/3 "2020-03-29T19:47:35Z")

</div>

Which browser and version and everything?

---

<div class="post-metadata">

**Author:** ![magnito2](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@magnito2](https://mediasoup.discourse.group/u/magnito2)\
**Post date:** [March 30, 2020, 5:39am UTC](https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706/4 "2020-03-30T05:39:38Z")

</div>

`consumer.on(“layerschange”)` fires with `null`. `consumer.paused` and `consumer.producerPaused` are both false. So it is probably to do with bandwidth.  
I am just wondering why it is happening in LAN.  
I also noted that sometimes the browser’s CPU usage can increase, which then results in the graying.  
I am testing on Firefox 74 and Chrome 80.

---

<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:** [March 30, 2020, 9:19am UTC](https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706/5 "2020-03-30T09:19:41Z")

</div>

Please, specify in which exact scenario it happens. Two Firefox? Two Chrome? One and one? Who does receive “gray” video?

---

<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:** [March 30, 2020, 11:16am UTC](https://mediasoup.discourse.group/t/graying-out-of-the-remote-video/706/7 "2020-03-30T11:16:27Z")

</div>

Those are too many tabs depending on your CPU power. And you still don’t say which browser gets gray/frozen video. That’s expected anyway.
