Is there a way to get the GstRTSPSession without using the "new-session" callback?

Nicolas Dufresne nicolas at
Mon Jun 22 18:51:14 UTC 2020

Le lundi 22 juin 2020 à 10:15 -0500, Mariano Koremblum a écrit :
> As the subject says, I am trying to find a way to get the GstRTSPSession
> object related to a Client connected by RTSP without using the "new-session"
> callback, ideally I want to obtain it by using the Client object itself
> (GstRTSPClient). Does anyone know if it is possible?

Assuming this is in regard to RTPBin, there is an action signal called "get-
session" with the following signature: 

   The “get-session” signal

   user_function (GstRtpBin *rtpbin,
                  guint      id,
                  gpointer   user_data)

The id being the name number as found on the pad you have requested (usually 0,
1, ...).

   g_signal_emit_by_name (rtpbin, "get-sesssion", id, &rtpsession);

> Thanks in Advance!
> --
> Sent from:
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at

More information about the gstreamer-devel mailing list