<div dir="auto">There is a patch iirc that does this, but it is not merged.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 11, 2022, 12:00 Eslam Ahmed via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For reference, it can be done. Not sure if it's the most optimized way though<div><br></div><div>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.</div><div><br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr">Best Regards,<br>Eslam Ahmed</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 11, 2022 at 10:03 AM Eslam Ahmed <<a href="mailto:eslam.ahmed@avidbeam.com" target="_blank" rel="noreferrer">eslam.ahmed@avidbeam.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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?</div><div><br></div><div>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?<br></div><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Best Regards,<br>Eslam Ahmed</div></div></div></div></div>
</blockquote></div>
</blockquote></div>