How to enable the reconnection function after playing RTSP and disconnecting the video stream

How to enable the reconnection function after playing RTSP and disconnecting the video stream.

You stop the pipeline and restart it if camera url does not change.

When the internet is disconnected, the player recovers slowly

2024-07-24 15:32:13.713 31540-31734 GStreamer+rtspsrc     W  0:02:49.601926417 0x7137291180 ../gst/rtsp/gstrtspsrc.c:3746:on_timeout_common:<rtspsrc0> source 28a8b169, stream 28a8b169 in session 0 timed out