How to interrupt a video stream programmaticaly?

Mandar Joshi emailmandar at gmail.com
Fri Mar 10 02:33:16 UTC 2017


> I would like to understand how to interrupt a stream and free a session
> programmatically,

Get the "GstRTSPClient *client" from "client-connected" signal of
GstRTSPServer and when you want to disconnect this client, use the
following code

GstRTSPSessionPool *pool = gst_rtsp_client_get_session_pool (client);
gst_rtsp_session_pool_filter (pool, func, NULL);


where func is

GstRTSPFilterResult func (GstRTSPSessionPool *pool, GstRTSPSession
*session, gpointer user_data) {
   return GST_RTSP_FILTER_REMOVE;
}


Regards
Mandar Joshi


More information about the gstreamer-devel mailing list