Versions Compared

Key

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

General request format:

GET http://{login}:{password}@IP-адресaddress:[портport]/web2/secure/video/action.do?version={version}&sessionid={session_id}&cam.id={cam_id}&target=PTZ&targetid={PTZ_device_id}&command={command}&login={login}&password={password}&speed={speed}&preset={preset}

Note
titleImportant!

Login and password must be specified twice in the request: before the IP address and in parameters. In both cases, this is the same login and password of the Intellect user.

Request parameters:

ParameterIs requiredDescription
versionYes
see
See Product version
.
session_idYesSession ID
, any value
cam_idYesCamera ID
.
PTZ_device_idYesID of the PTZ control panel related to the camera (can be obtained in configuration request – see Getting list of all server objects)
commandYes

The command to be executed. It can take one of the following values:

  • RIGHT – pan right
.
  • UP – tilt up
.
  • LEFT – pan left
.
  • DOWN – tilt down
.
  • ZOOM_IN – zoom in
.
  • ZOOM_OUT – zoom out
.
  • GO_
PRESET –
  • PRESET – go to the specified preset
.
POINTMOVE –
  • POINTMOVE – zooming of selected point on the image (x,y)
.
AREAZOOM –
  • AREAZOOM – zooming of selected area on the image (x,y,w,h)
.
loginYes
Login of Intellect user with permissions to PTZ control
Intellect username, if set
passwordYesIntellect user password, if set
speedYesCommand-processing speed (from 0 to 10). It is recommended to use low values due to delays while controlling by network
presetNo

Number of preset. Required parameter only for the command=GO_PRESET. Otherwise its value is ignored.

x – x coordinate relatively the image size. It takes values from 0.0 to 1.0. Required parameter only for the command=POINTMOVE or command=AREAZOOM. Otherwise its value is ignored.

– y coordinate relatively the image size. It takes values from 0.0 to 1.0. Required parameter only for the command=POINTMOVE or command=AREAZOOM. Otherwise its value is ignored.

w – width of zooming area relatively the image size. It takes values from 0.0 to 1.0. Required parameter only for the command=AREAZOOM. Otherwise its value is ignored.

h – height of zooming area relatively the image size. It takes values from 0.0 to 1.0. Required parameter only for the command=AREAZOOM. Otherwise its value is ignored.

Request example:

GET http://user:pass@127.0.0.1:8085/web2/secure/video/action.do?version=4.10.0.0&cam.id=5cam.id=1&target=PTZ&targetid=1.1&command=RIGHT&login=user&password=pass&speed=2


Tip

Camera managing