Cameras

Table Name: GXT_CAMERAS_TBL

List

Request a list of cameras.

  • Request:

    Copy
    http://192.168.1.2/PRT_CTRL_DIN_ISAPI.dll?Request&Type=List&SubType=GXT_CAMERAS_TBL
  • Response:

    Copy
    2=Camera 1&3=Camera 2

Detail

Request the details of a specific camera.

  • Request:

    Copy
    http://192.168.1.2/PRT_CTRL_DIN_ISAPI.dll?Request&Type=Detail&SubType=GXT_CAMERAS_TBL&RecId=<RecId>
  • Response:

    Copy
    CameraId=2&Name=Camera 1&DoorId=0&RefreshRate=400&StaticURL=http://camera1.url.com/image.jpg&StreamingURL=http://camera1.url.com/image.mjpg

Update

Update a specific camera.

  • Request:

    Copy
    http://192.168.1.2/PRT_CTRL_DIN_ISAPI.dll?Command&Type=Submit&SubType=GXT_CAMERAS_TBL&CameraId=2&Name=Front Door Camera
  • Response:

    Copy
    OK

Create

Create a camera. To create a camera, use the same parameters as update but leave the CameraId empty.

  • Request:

    Copy
    http://192.168.1.2/PRT_CTRL_DIN_ISAPI.dll?Command&Type=Submit&SubType=GXT_CAMERAS_TBL&CameraId=&Name=Camera 1&DoorId=0&RefreshRate=400&StaticURL=http://camera1.url.com/image.jpg&StreamingURL=http://camera1.url.com/image.mjpg
  • Response:

    Copy
    OK

When using the API to directly add records, please ensure the number of records added does not exceed the license limit for this record type, as this will result in undefined behavior. The license limit can be determined using the LicenseLimit request (see System).

Delete

Delete a specific camera.

  • Request:

    Copy
    http://192.168.1.2/PRT_CTRL_DIN_ISAPI.dll?Command&Type=Delete&SubType=GXT_CAMERAS_TBL&RecId=<RecId>
  • Response:

    Copy
    OK

Parameters

Parameter

Display Name

Default Value

Description

CameraId

Database ID

2

The Detail, Control and Delete APIs use this value as the RecId.

Name

Name

Camera 1

 

DoorId

Door

0

 

RefreshRate

Refresh Rate

400

 

StaticURL

Static Image URL

http://camera1.url.com/image.jpg

 

StreamingURL

Streaming MJPG URL

http://camera1.url.com/image.mjpg