ONVIF - Connecting to IP cameras through the ONVIF protocol
Connecting to IP cameras through the ONVIF protocol
Connecting to an ONVIF camera through the ONVIF protocol (instead of directly the rtsp://... URL) give access:
-
to the ONVIF information of the camera
-
to the PTZ and other ONVIF features
Quick ONVIF connection
- to quick connect (without support of PTZ and other ONVIF features), use the "onvifurl://" prefix, e.g.:
VideoGrabber.IPCameraURL = "onvifurl://192.168.5.1:8080"
- to connect with PTZ support and other ONVIF features, use the "onvif://" prefix, e.g.:
VideoGrabber.IPCameraURL = "onvif://192.168.5.1:8080"
RTSPS support
To connect through the RTSPS protocol (for IP cameras that implement it), use the "onvifs://" or "onvifsurl://" prefix.
- quick connect:
VideoGrabber.IPCameraURL = "onvifsurl://192.168.5.1:8080"
- normal connect:
VideoGrabber.IPCameraURL = "onvifs://192.168.5.1:8080"
Sample code
VideoGrabber.VideoSource = vs_IPCamera
VideoGrabber.IPCameraURL = "onvifurl://192.168.5.1:8080"
VideoGrabber.SetAuthentication (at_IPCamera, "user", "password");
VideoGrabber.StartPreview();