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:
Table of Contents



Column
 


Connect

Connect(BSTR ip, BSTR login, BSTR password, BSTR arch_password, long param, long port) set up a connection to the Server/Video Gate/Backup Archive.

  • 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 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. 
    • 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 other value passed, the connection is with port number "port + 20000". For example, if port=900, the connection is established with server port 20900.

...

  • long cam_id – camera ID
  • long compress – level of video compression 0-5 (for local camera =0). If set to -1, video stream is displayed directly from the camera without compression.
  • long show – checkbox: show/hide camera (1/0)

...

The result of calling the function with the parameter: camera 3 will be in the archive mode and the archive will be positioned to date «dd-mm-yy» and time «hh«hh:mm:ss» (date and time are to be set in this format only).

...

IsConnected() : boolean – method shows if the Video server is connected or disconnected.

GetCurIp

GetCurIp() : BSTR – returns the IP address of Server specified when calling Connect.

SendRawMessage

SendRawMessage(BSTR msg) – sends the command to be executed to Video server.

  • BSTR msg – command string view

...

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

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

...