How to use cameras in the PROMOTIC system.

The commonly sold web cameras are connectable either via the USB to specific computer, or independent IP cameras connected via Wi-Fi or directly into LAN networks.
The advantages and disadvantages:

The USB web camera is the cheapest solution but it must be located near the PC, requires the installation of WDM or BDA drivers, that are not always 100% reliable, requires additional software for displaying or streaming the captured images, and while streaming, the images are delayed 3 - 10 seconds compared to reality.

For the IP camera the higher price is the main disadvantage, but it is independent on the PC and the distance is also not the issue, the suppiled software or the images provided via the network can be easily integrated into the PROMOTIC system, it is more reliable, and suffers minimal image delays.


From the practical point of view, we therefore recommend the usage of web IP cameras in the PROMOTIC system.

WebCam - USB

The cameras connectable via the USB require the installation of WDM or BDA drivers created by the manufacturer of the specific device (similar as for PC TV cards, etc.). But in OS Windows, there is no default application, able to use such drivers and display the captured images. One possible solution is to use some software (VLC media player), that can connect to such drivers, convert the captured video into some known format (WMV), and offer that video on specified IP address and port into the LAN network in the form of streamed video. When receiving such stream, we follow the same steps as for the RSTP protocol described below.

WebCam - Lan (IP)

The manufacturers of these devices are also providing the corresponding software. The software is usually used for detecting the IP address of the camera via web interface. After the camera is detected, the software can be used for controlling the cameras (zoom, turning, ..) and additional parameters. The software may also contain ActiveX item used for displaying the streamed video. The network device can also act as web server, offering web pages (on its IP address) containing the streamed video. If the current type supports RTSP (Real Time Streaming Protocol) then the video can be displayed in arbitrary stream viewer (WMP, Winamp ..). If the current type supports FTP (File Transfer Protocol) then it is possible to save the stream into file(s).

The possible options of displaying the streamed video in the PROMOTIC application:

- if the ActiveX item displaying the streaming video is available:

In the PROMOTIC application panel, "General" is selected. In the ProgID configurator, the corresponding ActiveX is selected and its interface is used in order to connect to the camera's IP address (tested with Air Live WL-5400CAM).

- if the RTSP protocol is supported:

In the PROMOTIC application panel, "General" is selected. In the ActiveX items list the Windows media player is selected and its properties menu is used for setting the camera's URL address (the url entry).

Another option is to create own HTML page containing the Windows media player plugin with the connection to a specific address. This page can be then offered via the PmWebDir object and also displayed by the PmReport object.

Example of the HTML page:
for connecting the Windows Media Player plugin to a stream on the IP address and port 8090
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
<!-- //
function Init()
    var oVideoPlayer = '<embed id="tgPlugin" type="application/x-mplayer2" pluginspage="" src="" width="640" height="480" hidden="false" showstatusbar="1" showcontrols="1" autostart="true"></embed>';
<div id="tgVideoPlayer"></div>
- if the camera offers the web page containing the streaming video on its IP address:

The PmReport object can be used for displaying the desired page.

© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice