Accessing RTPSession inside webrtcbin

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

Accessing RTPSession inside webrtcbin

GStreamer-devel mailing list
Hi. It is possible to access the internal statistics of rtpbin using its get-internal-session property:

g_signal_emit_by_name(rtpbin, "get-internal-session", 0, &session)

Then I can use the RTPSession object to access and set properties like rtcp-min-interval or callback another function when a signal like on-receiving-rtcp is emitted.

How can I do the same using webrtcbin? Are the properties/signals of the RTPSession object somehow accessible from webrtcbin (1.18)?

Thanks,
Serhan


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

Re: Accessing RTPSession inside webrtcbin

GStreamer-devel mailing list
Hi,

Yes, you can access the rtpbin side webrtcbin with something like this:

GstElement *rtpbin;
GstWebRTCRTPTransceiver *transceiver;
guint mline;
GObject *session;

g_object_get (pad, "transceiver, &transceiver, NULL);
g_object_get (transceiver, "mlineindex", &mline, NULL);
g_object_unref (transceiver);

rtpbin = gst_bin_get_by_name (GST_BIN (webrtcbin), "rtpbin");
g_signal_emit_by_name(rtpbin, "get-internal-session", mline, &session)
g_object_unref (rtpbin);

Olivier

On Fri, 2021-05-14 at 20:12 +0200, Serhan Gül via gstreamer-devel wrote:
Hi. It is possible to access the internal statistics of rtpbin using its get-internal-session property:

g_signal_emit_by_name(rtpbin, "get-internal-session", 0, &session)

Then I can use the RTPSession object to access and set properties like rtcp-min-interval or callback another function when a signal like on-receiving-rtcp is emitted.

How can I do the same using webrtcbin? Are the properties/signals of the RTPSession object somehow accessible from webrtcbin (1.18)?

Thanks,
Serhan

_______________________________________________
gstreamer-devel mailing list

-- 
Olivier Crête


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