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 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);