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
- In the project, select Scan Onvif Network using the scanner in Devices :

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

If the camera is password-protected, the application prompts for a username and password to connect to the equipment.
Scan Onvif Device
- In the project, select Scan Onvif Device using the scanner in Devices :

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

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

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:

- 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
- 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:

- 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
| Feedback | Expected values | Description |
|---|---|---|
| Stream URI | Video stream link | The 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 URI | Link to a refreshed image | The 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
| Command | Input values | Description |
|---|---|---|
| PTZ Continuous | Value | Move relative to the camera's current position using the parameters preset through the PTZ X, PTZ Y and PTZ Zoom channels |
| PTZ Absolute | Value | Move the camera to the specific position preset through the PTZ X, PTZ Y and PTZ Zoom channels |
| PTZ X | Value (float) | Set the X coordinate for a PTZ Continuous or PTZ Absolute command |
| PTZ Y | Value (float) | Set the Y coordinate for a PTZ Continuous or PTZ Absolute command |
| PTZ Zoom | Value (float) | Set the camera zoom level for PTZ Continuous or PTZ Absolute commands |
| PTZ X Speed | Value (float) | Set the movement speed along the X axis for the PTZ Absolute command |
| PTZ Y Speed | Value (float) | Set the movement speed along the Y axis for the PTZ Absolute command |
| PTZ Zoom Speed | Value (float) | Set the zoom speed for the PTZ Absolute command |
| PTZ Stop | Value | Stop movement, but only after a PTZ Continuous command has been sent Without this command, the camera continues moving without stopping |
| PTZ Go Home | Value | Move the camera to its home coordinates The coordinates are set using the Onvif Device Manager application |
Feedbacks
| Feedback | Expected values | Description |
|---|---|---|
| PTZ X | Value (float) | Current PTZ X value |
| PTZ Y | Value (float) | Current PTZ Y value |
| PTZ Zoom | Value (float) | Current PTZ Zoom value |
| PTZ X Speed | Value (float) | Current PTZ X Speed value |
| PTZ Y Speed | Value (float) | Current PTZ Y Speed value |
| PTZ Zoom Speed | Value (float) | Current PTZ Zoom Speed value |
Configuring commands and feedbacks

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.