- iRidi Studio 2019
- IP camera video and images from the network
IP camera video and images from the network
These let you integrate video streams and static images into your interface using links on the local network or the Internet
Managing video streams in the interface
In iRidi Studio, open Cameras, which stores links to IP camera video streams available for use or already used in the visualization interface.

View modes:
- Gallery cameras - a shared library of typical links for popular IP camera models. You can add your own links to the library.
- Project cameras - links to IP cameras you have added to the visualization interface. To remove unused links from the project, use the unused resources tool on Resources (the toolbar on the right of the screen).
Configuring IP camera video
Dynamic Images are streaming video or snapshots downloaded from a resource on the Internet or local network. The resource can be a DVR, IP camera, video recorder or server.
Supported video codecs:
- JPEG / MJPEG - streaming video and frame-by-frame data from an IP camera or recorder; frames (snapshots) are *.jpg or *.png images;
- H.264 / MPEG-4 - highly compressed video.
A direct link to the image or video stream is required, without interface elements, ActiveX components and so on.
Where to find a direct link to an IP camera stream:
- Add a link to the iRidi project:
Cameras >
Project cameras > Add camera
- add a link to an IP camera or recorder stream to the project.
Example dynamic image links:
http://root:root@192.168.0.100:80/source/video.mjpg
rtsp://root:root@mydomain.com:554/mpeg4/media.amp
- http:// - data transfer protocol (HTTP or RTSP)
- root:root@ - username: password for camera access
- 192.168.0.100 - address of the video source resource
- :80 - connection port on the source
- /source/video.mjpg - data stream path
- Configure the link in the project:

-
URI - link to the video stream (or frame stream). The camera username, password and port can be specified in the fields below;
-
Port - for JPEG/MJPEG, the default port is 80; for MPEG-4/H.264, it is 554;
-
User / Password - username and password for accessing the camera video stream;
-
Refresh (ms) - reconnection to the video source;
- Refresh: 0 (ms) - for MJPEG/H.264/MPEG-4 streaming video;
- Refresh: 1000...n (ms) - for frame-by-frame JPEG transmission;
- Refresh: 0 (ms) - for MJPEG/H.264/MPEG-4 streaming video;
-
Demuxer - automatic or manual selection of the FFMPEG stream type when automatic detection fails. Sometimes used with Mobotix;
-
Probe size : 50000 (Kb) - the data buffer size in Kb that the application downloads before video playback starts. If left at 0, the default is 5 Mb. It can be reduced for low-resolution cameras or slow connections, but values below 20000 Kb are not recommended;
-
Parameters - a string specifying the RTSP transport type. Set:
rtsp_transport=tcp;if the IP camera RTSP stream is downloaded over the Internet or its quality is unsatisfactory;rtsp_transport=udp;or leave the field empty to download a local-network RTSP stream over UDP;
-
Width / Height - frame width/height for scaling. Leave the fields empty to display video at its original resolution;
-
Audio - determines whether to play the audio stream from an mxpeg camera, if present;
-
Disconnect when minimized - stops receiving streaming video when the application is minimized or the device screen is locked, reducing Internet traffic.
- Use a script to change this setting while the project runs, as in the following example:
function onDisconnect()
{
IR.GetImage("Camera name").DisconnectWhenMinimized = state;
}
Where:
- Camera name - the camera name,
- state - the setting state (true - enabled, false - disabled).
Use Test in browser to check a JPEG/MJPEG link: the camera should appear in the browser without controls, borders or other software wrappers.
- Link the camera to a graphic item:
Drag the dynamic image from Cameras onto the item that should display the camera stream. You can then double-click the linked item to edit the link.

Select how to scale the IP camera stream on the graphic item using ImageStretch (Project > States):
- None - do not scale the IP camera stream;
- Proportional - scale while preserving the aspect ratio;
- Full Size - scale to the item size without preserving the aspect ratio.
-
Scaling images on the iRid side places a heavy load on the visualization device. Try to set the desired resolution in the IP camera settings instead.
-
The number of visible cameras in your project must not exceed 4-5 for stable iRid project operation. Visible cameras include all cameras on currently open project pages and popups. The higher the camera resolution and the fewer resources the control panel has, the fewer cameras can be displayed.
Exceeding the recommended number of cameras can cause problems throughout the project. -
A script can link only one dynamic image to a graphic item. It therefore cannot assign one image to State 1 and another to State 2 of the item.
-
Remote viewing of IP camera video uses an external IP address. Cloud Gate cannot be used in this case, since i3 pro receives video directly from the IP cameras, bypassing iRidi Server. Using an external IP address is unsafe and creates a vulnerability to unauthorized access. To improve security, you can:
- use a service that provides online access to live video. For Ivideon , there is a corresponding lite module that embeds the service's video stream in the i3 pro interface. For other services, video cannot be embedded in the interface but can be opened in a browser;
- use a sufficiently strong IP camera password and expose the cameras to the Internet through DDNS or a static address;
- use a VPN as the only means of remote access to the entire automation site;
- do not view IP camera video over the Internet.
Weather widgets
A weather widget is an image at a static URL that updates at a specified interval and is available over HTTP. Various websites provide widget code, for example:
The service provides website embed code. Only the link to the png or jpg image is needed; configure it like an IP camera link in Cameras:
Example weather widget on the website:
Example weather widget link in iRidi:

- URI - paste the entire image link, tested in a browser, into URI in the camera settings;
- Refresh: 1000...n (ms) - image refresh interval (do not set less than 1000 ms).
http://info.weather.yandex.net/moscow/3_white.ru.png
- http:// - data transfer protocol (HTTP or RTSP)
- info.weather.yandex.net - address of the video source resource
- /moscow/3_white.ru.png - path to the weather widget image
Use Test in browser to test the completed link.
Drag the image onto the item. For a clear display, the item size must match the widget resolution.
Edit the link by double-clicking the item to which it is linked.
PTZ control
PTZ control means controlling an IP camera or video recorder over HTTP. If your camera supports PTZ commands, you can change its position if it has a pan/tilt drive, change its focus point, configure recording settings and more.
PTZ commands must be sent using the AV & Custom Systems (HTTP) driver. They are usually GET requests that can be sent from a browser. Refer to your camera or recorder REST API for the PTZ command list, and follow the instructions for AV & Custom Systems (HTTP).
Video from the control panel's cameras
If i3 pro runs on an iOS, Windows or Android device with a front camera (or a laptop with a webcam), you can display video from that camera in the iRidi project.
This is typically used with SIP video to display the stream transmitted over SIP to another party.
To display video from the control panel's main or front camera, link the camera URL to a graphic item and start receiving the stream. Configure this in the script editor (JS):
IR.AddListener(IR.EVENT_START,0,function()
{
// link the camera image to display Item
IR.GetItem("Page 1").GetItem("Item 1").GetState(0).Image = "ir_camera://";
});
function CameraStart ()
{
// start the camera record and flip it into vertical position (if started on iPad)
IR.Camera(IR.CAMERA_RECORD, IR.CAMERA_FRONT, IR.CAMERA_RESOLUTION_MEDIUM);
IR.Camera(IR.CAMERA_FLIP_VERTICAL, 1);
}
function CameraStop ()
{
// stop the camera record
IR.Camera(IR.CAMERA_STOP);
}
You can start and stop video display by calling CameraStart and CameraStop using Script call:

You can also call the functions on an event in scripts:
IR.AddListener(IR.EVENT_APP_ENTER_FOREGROUND, 0, function()
{
CameraStart (); // start video when iRidium in foreground
});
IR.AddListener(IR.EVENT_APP_ENTER_BACKGROUND, 0, function()
{
CameraStop (); // stop video when iRidium in background
});
- Video settings (quality, image rotation and so on) are configured when the video stream is created using IR.Camera(), described in detail in the Reference for JavaScript.
SIP video
During a SIP video call , you must display the video stream sent by the connected party.
The SIP driver automatically generates the stream when establishing a video call. To display it, link it to the graphic item that will show the video. Configure the link in the script editor (JS):
IR.AddListener(IR.EVENT_START,0,function()
{
// display the SIP video
IR.GetItem("Page 1").GetItem("Item 1").GetState(0).Image = "sip_image://";
});