No events when IP camera disconnected manually

The video is playing fine initially, but when we manually disconnect the IP Camera the video stops.
And again when we reconnect the camera, it is not playing the video.

What event should I listen and how to handle this properly.

Since our environment has IP camera in which the connection is not stable and might get into this situation often.


Please let me know if this can be resolved?