multipad webrtcbin

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

multipad webrtcbin

roy_ros
Hello im trying to develope an gstreamer webrtc SFU.

My question is if its possible to have an webrtcbin with multiple pads?
I want to have for example webrtcbin1 connected to the gstreamer from the
browser and this one have one stream to the gstreamer server (video only)
sending the webcam media and the gstreamer sending a videotestsrc.
But then when i do the same connection with a webrtcbin2 with the browser 2
and webrtcbin2 fires the signal pad-added i want to add this
webrctbin2_srcpad to a new sinkpad of the webrtcbin1 and renegotiates the
connection to get to streams in the browser 1.

Is this possible? and how to do it?

Thank you in advance.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: multipad webrtcbin

Matthew Waters
Yes, webrtcbin can have multiple pads.

The sendrecv example available from
https://github.com/centricular/gstwebrtc-demos uses multiple pads to
send and receive audio and video on two different pads.

You may be hitting a couple of problems
1. webrtcbin doesn't currently support rengotiation.  Can be fixed by
extending webrtcbin or having all the configuration upfront.
2. Linking two webrtcbin's together with both sending and receiving
would cause a loop in the pipeline graph and GStreamer does not like
that.  Can be fixed by separating the two webrtcbin's into separate
pipelines using something like proysrc/proxysink.

Cheers
-Matt

On 30/03/18 04:38, roy_ros wrote:

> Hello im trying to develope an gstreamer webrtc SFU.
>
> My question is if its possible to have an webrtcbin with multiple pads?
> I want to have for example webrtcbin1 connected to the gstreamer from the
> browser and this one have one stream to the gstreamer server (video only)
> sending the webcam media and the gstreamer sending a videotestsrc.
> But then when i do the same connection with a webrtcbin2 with the browser 2
> and webrtcbin2 fires the signal pad-added i want to add this
> webrctbin2_srcpad to a new sinkpad of the webrtcbin1 and renegotiates the
> connection to get to streams in the browser 1.
>
> Is this possible? and how to do it?
>
> Thank you in advance.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (499 bytes) Download Attachment