# Mediasoup as multiple broadcasting endpoint

**URL:** <https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116>\
**Category:** Integration\
**Created:** [May 29, 2020, 1:48pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116 "2020-05-29T13:48:21Z")\
**Posts on this page:** 9\
**Page:** 2

<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:** [June 2, 2020, 12:46pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/21 "2020-06-02T12:46:46Z")

</div>

I’m afraid this is the **Leeryver Symptom** (in Spanish _“Leer-y-ver”_, in English: _“Read-and-see”_):

_“I never check the logs when things go ok so, when things are not ok I check the logs for first time and assume that the first warning/error log is the cause of the problem.”_

Old versions of GStreamer are buggy when it comes to inspect some RTCP packets. But that’s not related to the problem you have.

I don’t know what you mean with “The first video goes perfect, the problem is with another one”. Unclear if you are sending two videos using the same GStreamer process or two different processes.

---

<div class="post-metadata">

**Author:** ![valerymagadeeva](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@valerymagadeeva](https://mediasoup.discourse.group/u/valerymagadeeva)\
**Post date:** [June 2, 2020, 12:51pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/22 "2020-06-02T12:51:04Z")

</div>

> [@ibc](#):
>
> I don’t know what you mean with “The first video goes perfect, the problem is with another one”. Unclear if you are sending two videos using the same GStreamer process or two different processes.

I have two different GStreamer processes. The first one goes perfect, the followings are not

---

<div class="post-metadata">

**Author:** ![valerymagadeeva](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@valerymagadeeva](https://mediasoup.discourse.group/u/valerymagadeeva)\
**Post date:** [June 2, 2020, 12:55pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/23 "2020-06-02T12:55:43Z")

</div>

> [@ibc](#):
>
> I’m afraid this is the **Leeryver Symptom** (in Spanish _“Leer-y-ver”_ , in English: _“Read-and-see”_ ):
> 
> _“I never check the logs when things go ok so, when things are not ok I check the logs for first time and assume that the first warning/error log is the cause of the problem.”_

Well, actually when nothing helps, it’s time to suspect every suspicious log message

---

<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:** [June 2, 2020, 1:47pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/24 "2020-06-02T13:47:13Z")

</div>

Honestly no idea why the second one does not work, but it cannot be related to mediasoup.

---

<div class="post-metadata">

**Author:** ![valerymagadeeva](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@valerymagadeeva](https://mediasoup.discourse.group/u/valerymagadeeva)\
**Post date:** [June 2, 2020, 3:15pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/25 "2020-06-02T15:15:51Z")

</div>

One more question: should every GStreamer process use different rtp and rtcp ports?

```auto
await rtpVideoTransport.connect({
  ip: '127.0.0.1',
  port: 5004,
  rtcpPort: 5005,
});

```

---

<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:** [June 2, 2020, 4:36pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/26 "2020-06-02T16:36:26Z")

</div>

> [@valerymagadeeva](#):
>
> One more question: should every GStreamer process use different rtp and rtcp ports?

Please, tell me that you are creating a separate `PlainTransport` in mediasoup for each GStreamer and not just one for both. The doc is there: [mediasoup :: API](https://mediasoup.org/documentation/v3/mediasoup/api/#Transport)

---

<div class="post-metadata">

**Author:** ![valerymagadeeva](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@valerymagadeeva](https://mediasoup.discourse.group/u/valerymagadeeva)\
**Post date:** [June 2, 2020, 6:12pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/27 "2020-06-02T18:12:31Z")

</div>

> [@ibc](#):
>
> Please, tell me that you are creating a separate `PlainTransport` in mediasoup for each GStreamer and not just one for both

Sure!! I create a new PlainTransport after new connection. The problem is I don’t understand, should I use different ports or not

---

<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:** [June 2, 2020, 8:10pm UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/28 "2020-06-02T20:10:26Z")

</div>

> [@valerymagadeeva](#):
>
> I create a new PlainTransport after new connection. The problem is I don’t understand, should I use different ports or not

I don’t understand the question. You launch two gstreams so each one will bind in two different ports, and you need two `PlainTransports`, and you need to call `transport.connect()` with the binding IP and port of its associated gstreamer.

---

<div class="post-metadata">

**Author:** ![valerymagadeeva](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@valerymagadeeva](https://mediasoup.discourse.group/u/valerymagadeeva)\
**Post date:** [June 3, 2020, 6:02am UTC](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116/29 "2020-06-03T06:02:06Z")

</div>

Thanks! That was It. I’m quite new at video streaming at all, so I called transport.connect() for every plainTrasport with the same rtp and rtcp ports. That is the issue with the black screen!

[Previous page](https://mediasoup.discourse.group/t/mediasoup-as-multiple-broadcasting-endpoint/1116.md?page=1)
