Auto-reconnection
Auto-reconnection of a URL
When the IP camera auto-reconnection is enabled (default setting):
- when the connection is lost, the OnDeviceReconnecting event occurs and the RTSP filter tries to reconnect to the IP camera,
- when the camera is connected again, the OnDeviceReconnected event occurs.
When the IP camera auto-reconnection is disabled, the OnDeviceLost event occurs when the connection is lost, and TVideoGrabber stops.
To disable the auto-reconnection, add >autoreconnect=0 at the end of the URL, e.g.:
VideoGrabber.IPCameraURL = "rtsp://192.168.5.1/live.sdp>autoreconnect=0"