Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column
width35%


Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn the page:
borderStylesolid
Table of Contents



Column
 


Connect

...

  • BSTR ip – IP address of the Video server;
  • BSTR login – login to connect to the Server (can be blank);
  • BSTR password – password to set up a connection to the Video server (can be blank);
  • BSTR arch_password – password to access the archive (i.e. admin password,  can be blank);

  • long param – Server role:. The parameter is mandatory.
    • 0 – video server;
    • 1 – backup archive;
    • 2 – videogate;

  • long port – port to connect Video server. The parameter is mandatory.  
    • if 0, 1 or 2 are passed, the connection is established with port 900, 901 or 902 correspondingly;

    • if 100 is passed, the connection is with port 10504;

    • if any onter value passed, the connection is with port number "port + 20000". For example, if port=900, the connection is established with server port 20900.

...

Info
titleNote:

 Positioning accuracy can be specified in milliseconds, for instance:

DoReactMonitor(“MONITOR||ARCH_FRAME_TIME|cam<3>,date<02-10 05>,time<12:12:22.345>


Example. Show 2nd stream from camera 14 on Monitor 1:

"MONITOR|1|ADD_CAM|cam<14>,cam_id<14>,compress<1>,stream_id<14.2>"

Exapmle. Set fps = 1 when viewing archive from Camera 11

"MONITOR||CAM_PARAMS|cam<11>;arch_fps<1>"

RemoveAllCams

RemoveAllCams() : long – remove all cameras from the monitor

...

  • WithoutDecode = 0x10 – disable video decoding on the server.
  • WithoutSubtitles=0x20 – disable subtitles.
Info
titleNote

...

The options parameter is created the same as parameters of the CamMonitor.ocx component –

...

see CamMonitor.ocx parameters.

SetParam

SetParam(BSTR param_name, BSTR param_value) - sets the number of camera windows in CamMonitor.

  • BSTR param_name - a string representation of the length or width.
  • BSTR param_value - the number of camera windows.

How to call a function:

Code Block
languagecpp
m_cam.SetParam("monitor_ch", m_NH);
m_cam.SetParam("monitor_cw", m_NW);