Skip to content

ONVIF / PTZ

SetAuthentication (at_IPCamera, "user", "password");

VideoGrabber.StartPreview();

Retrieving ONVIF information

Once connected (e.g. from the OnPreviewStarted or OnRecordingStarted events), the various ONVIF information fields can be retrieved as strings by invoking ONVIFDeviceInfo (TONVIFDeviceInfo ), e.g.:

string SerialNumber = VideoGrabber.ONVIFDeviceInfo (onv_SerialNumber);
string PTZInfo = VideoGrabber.ONVIFDeviceInfo (onv_PTZInfo);
string PTZPresets = VideoGrabber.ONVIFDeviceInfo (onv_PTZPresets);