Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.

Previous page CamMonitor.ocx methods  Intellect HTTP API Next page


OnCamListChange (long cam_id, long action) – occurs when there is connection with the Server or the number of cameras on the Server changes.

• long cam_id – camera ID.

• long action equals 1, if camera with id == cam_id exists, otherwise action == 0.

This event occurs as many times as there are cameras on the Server. The negative value of the cam_id parameter (cam_id < 0) shows that OnCamListChange is not called.

If there are 3 cameras (1, 2, 3) on the Server, then the following events will occur one after another: 

CamListChange(1,1)

CamListChange(2,1)

CamListChange(3,1)

CamListChange(-1,1)

Example:

Show the camera with cam_id =2 with compress =1 compression level;

CamMonitor1CamListChange(long cam_id, long action)
{
    if(cam_id == -1)
    {
        CamMonitor1->ShowCam(2,1,1);
    }
}
  • No labels