# pipeToRouter blank video/audio

**URL:** <https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327>\
**Category:** mediasoup libraries\
**Created:** [June 28, 2022, 11:16am UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327 "2022-06-28T11:16:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MohannadET](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/mohannadet/32/1637_2.png) [@MohannadET](https://mediasoup.discourse.group/u/MohannadET)\
**Post date:** [June 28, 2022, 11:16am UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/1 "2022-06-28T11:16:23Z")

</div>

Hello Everyone,  
i have 2 worker setup each has one router and one device, I’m facing a small issue regarding `pipeToRouter`, i did as instructed in mediasoup examples regarding `pipeToRouter`, and after piping from `router1` to `router2` and consuming the producer through the device on `router2`, i was faced with a blank video (the original video is shown normally through router1 and device1) , yet there was no errors during piping, producing or consuming. i’d appreciate any guidance regarding where i can diagnose to find the exact problem.

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![BronzedBroth](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@BronzedBroth](https://mediasoup.discourse.group/u/BronzedBroth)\
**Post date:** [June 28, 2022, 1:24pm UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/2 "2022-06-28T13:24:04Z")

</div>

Sounds like you’re doing everything correct, in regards to using the pipe.

I’d wonder if the stream is actually transmitting and not just produced. As well maybe it’s paused.

---

<div class="post-metadata">

**Author:** ![MohannadET](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/mohannadet/32/1637_2.png) [@MohannadET](https://mediasoup.discourse.group/u/MohannadET)\
**Post date:** [June 28, 2022, 1:28pm UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/3 "2022-06-28T13:28:01Z")

</div>

Well i was just inspect the transport and i found both the consumer (not paused already called resume) and `MediasStreamTrack` inside the rx transport yet i can’t see the track on the frontend, starting to wonder if actually there may be some issue with my frontend and investigating as we talk right now. thanks for the help

---

<div class="post-metadata">

**Author:** ![BronzedBroth](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@BronzedBroth](https://mediasoup.discourse.group/u/BronzedBroth)\
**Post date:** [June 28, 2022, 4:22pm UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/4 "2022-06-28T16:22:32Z")

</div>

Have you narrowed out auto-play policy?  
If the stream is being sent and stats are proving it, the client would be in my mind the issue as well. If you went custom with it, do consider the above policy.

If you want to trick this policy for testing purposes till you implement a solution (if it’s the problem).  
Perform clicks on the page as you refresh it this provides interaction and streams can auto-play.

* * *

Otherwise out of ideas, PipeToRouter is a bit advanced, I wouldn’t suspect you having such issues at that stage.

---

<div class="post-metadata">

**Author:** ![MohannadET](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/mohannadet/32/1637_2.png) [@MohannadET](https://mediasoup.discourse.group/u/MohannadET)\
**Post date:** [June 28, 2022, 4:41pm UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/5 "2022-06-28T16:41:28Z")

</div>

well i don’t think it’s an auto-play policy issue, after further investigation i noticed that audio too isn’t working well and no audio is transmitted yet i can’t identify the problem at all even running the server on debug mode didn’t make any difference. everything is working as expected except that i can’t see or hear the other person. thanks anyways for help.

---

<div class="post-metadata">

**Author:** ![zaidiqbal](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/zaidiqbal/32/1498_2.png) [@zaidiqbal](https://mediasoup.discourse.group/u/zaidiqbal)\
**Post date:** [June 29, 2022, 6:45am UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/6 "2022-06-29T06:45:35Z")

</div>

Does the streams flow properly without pipeToRouter? I mean if you produce on router1 and consume from router1 as well does the stream work?

You said: “you can’t see the track on the frontend”. How are you checking it? You might have to go to chrome://webrtc-internals in chrome to see whether actually tracks are being received by webrtc or it’s something wrong on your frontend.

You probably will have to share some code to see what can be the issue.

---

<div class="post-metadata">

**Author:** ![MohannadET](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/mohannadet/32/1637_2.png) [@MohannadET](https://mediasoup.discourse.group/u/MohannadET)\
**Post date:** [July 4, 2022, 2:42pm UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/7 "2022-07-04T14:42:53Z")

</div>

After trying what you suggested and inspected media communication through the same router i found that there was already an issue, i was developing this solution on my local machine and i found out that the sfu listenIp was 0.0.0.0 which lead to video not being transmitted, everything worked correctly after changing it to 127.0.0.1,  
Thanks everyone for the help @BronzedBroth @zaidiqbalsoftech

---

<div class="post-metadata">

**Author:** ![zaidiqbal](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/zaidiqbal/32/1498_2.png) [@zaidiqbal](https://mediasoup.discourse.group/u/zaidiqbal)\
**Post date:** [July 4, 2022, 2:55pm UTC](https://mediasoup.discourse.group/t/pipetorouter-blank-video-audio/4327/8 "2022-07-04T14:55:04Z")

</div>

Great 👍
