Skip to content

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:

Cam1Rec0

SRC_1_0

__

Cam1Rec0

LOCAL_SRC_1_0

rtsp://192.168.8.139/rtsp_tunnel?rec=1&vcd=2&enableaudio=1&audio_mode=0&aacOut=1&silence=0

Cam1Rec1

SRC_1_1

__

Cam1Rec1

LOCAL_SRC_1_1

rtsp://192.168.8.139/rtsp_tunnel?rec=1&inst=2&vcd=2&enableaudio=1&audio_mode=0&aacOut=1&silence=0