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

Nicolas Dufresne nicolas at ndufresne.ca
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

   GstElement*
   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: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list