Accessing RTPSession inside webrtcbin

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


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
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-- 
Olivier Crête
olivier.crete at collabora.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210514/daf65734/attachment.htm>


More information about the gstreamer-devel mailing list