Connect

Connect(BSTR ip, BSTR login, BSTR password, BSTR arch_password, long param) set up a connection to the Server.

The connection to Server is set up asynchronously.

ShowCam

ShowCam(long cam_id, long compress, long show) shows/hides camera on the monitor.

DoReactMonitor

DoReactMonitor(BSTR react_string) – control over the monitor/cameras

How to create react_string:

react_string =   "MONITOR||ARCH_FRAME_TIME|cam<3>,date<dd-mm-yy>,time<hh:mm:ss>";
CamMonitor1->DoReactMonitor(react_string);

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:mm:ss» (date and time are to be set in this format only).

The mode parameter takes the following values:

0 – video gate if it's specified (otherwise, video server).

1 – video server.

2 – long-time archive.

“MONITOR|<id ignored>|ARCH_FRAME_TIME|...”

 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>

RemoveAllCams

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

IsConnected

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.

How to call a function:

m_Cam.SendRawMessage("CAM|1|REC");
m_Cam.SendRawMessage("CAM|1|REC_STOP");
m_Cam.SendRawMessage("CAM|1|ARM");
m_Cam.SendRawMessage("CAM|1|DISARM");

Disconnect

Disconnect() – disconnect from the Video server.