Skip to main content

iRidi for Onvif

A toolkit for creating control interfaces for equipment and IP cameras based on the Onvif protocol.

Documentation updated 01.01.2024

ONVIF (Open Network Video Interface Forum) is an international industry organization that develops standardized protocols for interoperability between equipment and software in security systems (IP cameras, IP encoders, video recorders, access controllers, etc.).

iRidi for Onvif allows a control panel (iOS, Android, Windows, Mac) to connect to an IP camera that supports the Onvif protocol.

Connection​

Connect to the equipment (IP cameras supporting the Onvif protocol) over the local network. Communication with the equipment uses HTTP requests.

Working in iRidi​

Create a new project and add the Onvif driver using a scanner or by entering the data manually.

Scanning devices​

There are two scanners: the network scanner Scan Onvif Network (scans the network and lets you select a device from all devices found) and the individual device scanner Scan Onvif Device (prompts for the IP address, username and password to find a device).

Scan Onvif Network​

  1. In the project, select Scan Onvif Network using the scanner in Devices :

Onvif1.png

  1. Select the required camera and its supported functions to add to the project:

Onvif2.png Onvif3.png

Note

If the camera is password-protected, the application prompts for a username and password to connect to the equipment.

Scan Onvif Device​

  1. In the project, select Scan Onvif Device using the scanner in Devices :

Onvif4.png

  1. Enter the camera's IP address, username and password:

Onvif5.png

  1. Select the required camera subdevices (supported functions) to add to the project:

Onvif3.png

Note

If the scanner does not find the equipment, check that the required port is available on the computer and try scanning the devices again.

Configuring the driver​

The driver settings are populated automatically when scanning the network:

Onvif6.png

  • Log Level - logging level;
  • Host - camera IP address;
  • Port - port;
  • Login / Password - username and password for accessing the camera;
  • '''Wait for Connect (ms) - connection timeout;
  • '''Wait for Data (ms) - time to wait for feedback from the equipment;
  • SSL - the encryption type;
  • Service Path - path to the device service (populated automatically during scanning).

Configuring subdevices​

Onvif7.png

  • Name - the subdevice name;
  • Driver Type - driver type (Onvif);
  • Service Type - subdevice type (Streaming Profile, PTZ);
  • Service Path - path to the device service (populated automatically during scanning);
  • Profile Token - profile token (populated automatically during scanning).

Commands & Feedbacks​

Feedback channels (in the Streaming Profile subdevice) have the following additional settings:

Onvif8.png

  • Name - the status feedback name;
  • Request Type - feedback type (Stream URI, Snapshot URI);
  • Refresh Interval (sec.) - stream / image refresh interval (sec.);
  • Stream Type - video stream type (RTP-Unicast, RTP-Multicast);
  • Protocol - protocol (UDP, TCP, RTSP, HTTP).

Devices​

When you add a camera using the scanner, all command and feedback settings are configured automatically. You can only change the feedback settings in the Streaming Profile subdevice. Added subdevice commands and feedbacks cannot be deleted. Control works by sending a value to a command (send a number, send a string, or send a value from an object).

Streaming Profile​

Feedbacks

FeedbackExpected valuesDescription
Stream URIVideo stream linkThe feedback provides a video stream link
You can use it as the image of a graphical item in Studio to display the camera's live video stream on that item
Snapshot URILink to a refreshed imageThe feedback provides a link to a periodically refreshed image
You can use it as the image of a graphical item in Studio to display a camera snapshot on that item

PTZ​

Commands

CommandInput valuesDescription
PTZ ContinuousValueMove relative to the camera's current position using the parameters preset through the PTZ X, PTZ Y and PTZ Zoom channels
PTZ AbsoluteValueMove the camera to the specific position preset through the PTZ X, PTZ Y and PTZ Zoom channels
PTZ XValue (float)Set the X coordinate for a PTZ Continuous or PTZ Absolute command
PTZ YValue (float)Set the Y coordinate for a PTZ Continuous or PTZ Absolute command
PTZ ZoomValue (float)Set the camera zoom level for PTZ Continuous or PTZ Absolute commands
PTZ X SpeedValue (float)Set the movement speed along the X axis for the PTZ Absolute command
PTZ Y SpeedValue (float)Set the movement speed along the Y axis for the PTZ Absolute command
PTZ Zoom SpeedValue (float)Set the zoom speed for the PTZ Absolute command
PTZ StopValueStop movement, but only after a PTZ Continuous command has been sent
Without this command, the camera continues moving without stopping
PTZ Go HomeValueMove the camera to its home coordinates
The coordinates are set using the Onvif Device Manager application

Feedbacks

FeedbackExpected valuesDescription
PTZ XValue (float)Current PTZ X value
PTZ YValue (float)Current PTZ Y value
PTZ ZoomValue (float)Current PTZ Zoom value
PTZ X SpeedValue (float)Current PTZ X Speed value
PTZ Y SpeedValue (float)Current PTZ Y Speed value
PTZ Zoom SpeedValue (float)Current PTZ Zoom Speed value

Configuring commands and feedbacks​

SendRecieve.png

To control equipment, configure Commands and Feedbacks. To send a command, drag it onto a graphical item and specify the Value to send. To display feedback, drag the Feedback onto a graphical item and specify how to display its Value.

For more information about graphical items, see Graphical item types.