How to stop only one url and clients listening to it in RTSP server?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to stop only one url and clients listening to it in RTSP server?

Toon Heyrman
I have a RTSP server running with two url's.
For example: /stream1 and /stream2
The Streams get both video from a different /dev/video device.

To do something else I need to stop all applications that use /dev/video0
(stream1 using it)

So I need to stop providing /stream1 and stop the clients that are listening
to this stream.

What I currently do is removing the url and factory from the server via
gst_rtsp_mount_points_remove_factory.
And to close the clients, I use gst_rtsp_server_client_filter with the
filter_function returning GST_RTSP_FILTER_REMOVE.

But the problem is that the clients from /stream2 are also closed.
And I don't know how to differentiate the clients from /stream1 and /stream2
in the filter_function.

Anybody any idea?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to stop only one url and clients listening to it in RTSP server?

stfl
I was looking at this myself some time ago. I didn't implement it in the end.

The GstRTSPClient which is a parameter to gst_rtsp_server_client_filter has
a property refering to the mount-point

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-server/html/GstRTSPClient.html



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to stop only one url and clients listening to it in RTSP server?

Toon Heyrman
I tried to use the function, gst_rtsp_mount_points_match. And then filled in
stream0 and stream1.
These gave me the two media factories of stream0 and stream1.

But with these I still don't know how to differentiate if it is a stream0
client or a stream1.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel