Close RTSP Session on live source element failure

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

Close RTSP Session on live source element failure

bomba
Hello guys,

In my RTSP server implementation, I acquire video from the laptop's webcam
and audio from an USB dongle.
While running and with a client connected, I accidentally removed my USB
audio dongle, unvealing a possible scenario: one of the pipeline's sources
suddenly disappears. The connected client will still be connected, the
session will still be up.

How is it possible to trap messages coming from the pipeline in order to
terminate the sessions, if there is any?



--
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: Close RTSP Session on live source element failure

bomba
Maybe something like  this
<http://gstreamer-devel.966125.n4.nabble.com/gst-rtsp-server-and-gst-pipeline-td4668935.html>  
would work.

I could get the state-changed signal from GstRtspMedia object. Am I right?



--
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: Close RTSP Session on live source element failure

bomba
Or, I could connect the "media-constructed" signal of GstRTSPMediaFactory to
get a pointer to the constructed GstRTSPMedia, then catch the new-state
signal



--
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: Close RTSP Session on live source element failure

bomba
unfortunately when the source dies does not change state of the media.
Any hints?



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