# Can I pass the consume.track to another mediasoup?

**URL:** <https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660>\
**Category:** mediasoup libraries\
**Created:** [March 21, 2020, 8:59am UTC](https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660 "2020-03-21T08:59:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![motcwang](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/motcwang/32/328_2.png) [@motcwang](https://mediasoup.discourse.group/u/motcwang)\
**Post date:** [March 21, 2020, 8:59am UTC](https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660/1 "2020-03-21T08:59:37Z")

</div>

I am using mediasoup-client-aiortc, i don’t know how to deal with consumer.track, i want to forward consumer.track, i don’t know if it is ok?

---

<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 21, 2020, 9:10am UTC](https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660/2 "2020-03-21T09:10:38Z")

</div>

First of all, please indicate why you want to pass the consumer track to another mediasoup. What are you willing to achieve?

Tracks in `mediasoup-client-aiortc` are instances of `FakeMediaStreamTrack` [fake-mediastreamtrack](https://www.npmjs.com/package/node-mediastreamtrack).

Audio and Video stays in the Python worker…, it is not delivered to Node in any case. Right now you can produce audio given the exposed constrains [here](https://www.npmjs.com/package/node-mediastreamtrack). This is, you can generate media from a camera, mic, file and URL. When it comes to consuming, the media you are consuming is received in the Python worker and we are not handing it. We plan to add the ‘recording’ feature which will let you record the incoming data into a file, device, URL (this is something to be defined).

---

<div class="post-metadata">

**Author:** ![motcwang](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/motcwang/32/328_2.png) [@motcwang](https://mediasoup.discourse.group/u/motcwang)\
**Post date:** [March 21, 2020, 9:18am UTC](https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660/3 "2020-03-21T09:18:35Z")

</div>

Thank you for your reply!  
Mainly want to forward the `MediaStream` received by `mediasoup-client-aiortc`. For example, let `ffmpeg` or `gstreamer` receive this video stream.

---

<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 21, 2020, 10:12am UTC](https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660/4 "2020-03-21T10:12:40Z")

</div>

No matter they are fake tracks, mediasoup-client-aiortc can consume a real audio/video track and produce it into the same mediasoup Router or a different one.

Just take the consumer.track and use it una transport.produce() call.

---

<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 21, 2020, 11:27am UTC](https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660/5 "2020-03-21T11:27:09Z")

</div>

So true! I’ve replied before having the morning coffee…, not good.

---

<div class="post-metadata">

**Author:** ![motcwang](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/motcwang/32/328_2.png) [@motcwang](https://mediasoup.discourse.group/u/motcwang)\
**Post date:** [March 21, 2020, 1:07pm UTC](https://mediasoup.discourse.group/t/can-i-pass-the-consume-track-to-another-mediasoup/660/6 "2020-03-21T13:07:00Z")

</div>

Thank you very much, I have successfully tested!
