GstRTSPServer clients that are connected to a specific mount point
eslam.ahmed at avidbeam.com
Tue Jan 11 09:52:00 UTC 2022
For reference, it can be done. Not sure if it's the most optimized way
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.
On Tue, Jan 11, 2022 at 10:03 AM Eslam Ahmed <eslam.ahmed at avidbeam.com>
> 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...
More information about the gstreamer-devel