GstRTSPServer clients that are connected to a specific mount point

Eslam Ahmed eslam.ahmed at avidbeam.com
Wed Jan 12 08:40:05 UTC 2022


Well in my case, I am more interested in the number of clients connected to
a specific rtsp endpoint. The solution I mentioned serves that just right!

Thank you!

Best Regards,
Eslam Ahmed


On Wed, Jan 12, 2022 at 10:15 AM Marc Leeman <marc.leeman at gmail.com> wrote:

>
> 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/f6073eeb/attachment-0001.htm>


More information about the gstreamer-devel mailing list