ONVIF - Connecting to IP cameras through the ONVIF protocol
Connecting to an ONVIF camera through the ONVIF protocol (instead of directly using the rtsp://... URL) gives access to:
- the ONVIF information of the camera,
- the PTZ and other ONVIF features.
Quick ONVIF connection
To quick connect (without support for 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();