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

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

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

Mariano Koremblum
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?

Thanks in Advance!



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

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

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

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

Thornton, Keith
In reply to this post by Mariano Koremblum
Hi,
in lots of other callbacks, one of the parameters is GstRTSPContext which has an element session which points to a GstRTSPSession.
Gruesse

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <[hidden email]> Im Auftrag von Mariano Koremblum
Gesendet: Montag, 22. Juni 2020 17:15
An: [hidden email]
Betreff: Is there a way to get the GstRTSPSession without using the "new-session" callback?

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?

Thanks in Advance!



--
Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&amp;data=02%7C01%7C%7Cf74116c6adac4144b76508d816c991c6%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637284402268963737&amp;sdata=0%2FkpK%2BiodwgN5Abp21ctOPjSbjVSLPF86NvJJs9s5tk%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&amp;data=02%7C01%7C%7Cf74116c6adac4144b76508d816c991c6%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637284402268963737&amp;sdata=D%2FRHXvtp2BLCIn75yY5kCcBfIBzxU5z8h9rTlXaOYzI%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel