GstRTSPServer clients that are connected to a specific mount point

Eslam Ahmed eslam.ahmed at
Wed Jan 12 07:53:27 UTC 2022

Good to know, for now!

Best Regards,
Eslam Ahmed

On Tue, Jan 11, 2022 at 2:48 PM Marc Leeman <marc.leeman at> wrote:

> There is a patch iirc that does this, but it is not merged.
> On Tue, Jan 11, 2022, 12:00 Eslam Ahmed via gstreamer-devel <
> gstreamer-devel at> wrote:
>> For reference, it can be done. Not sure if it's the most optimized way
>> though
>> loop on all clients via gst_rtsp_server_client_filter. Per client, loop
>> on all his/her sessions via gst_rtsp_client_session_filter. Per session,
>> call gst_rtsp_session_get_media with the endpoint you wish and check how
>> many matched chars returned. if matched chars was equal to the number of
>> chars in the endpoint, then it means this is an exact match and it
>> represents a client using (connected to) that endpoint.
>> Best Regards,
>> Eslam Ahmed
>> On Tue, Jan 11, 2022 at 10:03 AM Eslam Ahmed <eslam.ahmed at>
>> wrote:
>>> Hello,
>>> I am looking for a way to figure out how many clients are connected to a
>>> specific stream or mount point running on a gst-rtsp-server?
>>> gst_rtsp_server_client_filter can be called to iterate over all the
>>> clients (GstRTSPClient which have inherited GstRTSPMountPoints,
>>> GstRTSPSessionPool, GstRTSPAuth and GstRTSPThreadPool) but not clients
>>> connected to a given mount point. Could it be adapted to do so?
>>> Best Regards,
>>> Eslam Ahmed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list