Accessing RTPSession inside webrtcbin

Olivier Crête olivier.crete at
Fri May 14 20:54:56 UTC 2021


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);


On Fri, 2021-05-14 at 20:12 +0200, Serhan Gül via gstreamer-devel
> 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
> gstreamer-devel at

Olivier Crête
olivier.crete at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list