GstRTSPServer clients that are connected to a specific mount point

Marc Leeman marc.leeman at gmail.com
Wed Jan 12 08:15:08 UTC 2022


I was replying on my phone, so could not give more details.

On second thought, I think the patch is on the total number of connections.
I use it to limit the number of connections.

Both patches have been pushed, but re not merged iirc.



On Wed, 12 Jan 2022 at 08:53, Eslam Ahmed <eslam.ahmed at avidbeam.com> wrote:

> Good to know, for now!
>
> Best Regards,
> Eslam Ahmed
>
>
> On Tue, Jan 11, 2022 at 2:48 PM Marc Leeman <marc.leeman at gmail.com> 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 lists.freedesktop.org> 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 avidbeam.com>
>>> 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
>>>>
>>>

-- 
g. Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220112/b649ec6f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rtsp-server-Limit-number-of-connecting-clients.patch
Type: text/x-patch
Size: 7987 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220112/b649ec6f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-rtsp-server-expose-the-number-of-active-clients.patch
Type: text/x-patch
Size: 3414 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220112/b649ec6f/attachment-0001.bin>


More information about the gstreamer-devel mailing list