ONVIF Replay
ONVIF REPLAY
To use the ONVIF Replay:
1) get the list of the recordings available on the ONVIF DVR or IP camera:
VideoGrabber.VideoSource = vs_IPCamera
VideoGrabber.IPCameraURL = "onvif://192.168.2.144"
VideoGrabber.SetAuthentication (at_IPCamera, "user", "password");
string XMLRecordings = VideoGrabber.ONVIFDeviceInfo (onv_XMLReplay);
2) extract the URL from XMLRecordings, corresponding to the recording that must be replayed ("uri" field)
3) pass the URL extracted (*) to IPCameraURL:
VideoGrabber.VideoSource = vs_IPCamera
VideoGrabber.IPCameraURL = "rtsp://..." // (*)
VideoGrabber.SetAuthentication (at_IPCamera, "user", "password");
VideoGrabber.StartPreview();
Note: if a seeking is required, add ">starttime=nnn" at the end of the replay URL (with nnn expressed in milliseconds). E.g. to start the replay at 15 seconds (15000 ms):
rtsp://192.168.1.22/rtsp_tunnel?rec=1&vcd=2>starttime=15000
Example of XML data structure returned for 2 recordings: