Home / Docs Center / Device API Reference / PTZ Control

PTZ Control

Device API Reference · PTZ Cameras

Project: Device API Documentation (New) | page_id: 854

Brief Description:

  • PTZ control

Request URL:
- /xsw/api/ptz/control

Request Method:
- POST

URL Parameters:

Parameter Required Type Description
value Yes string Control direction, see the notes
speed No number Speed optional, uses the basic configuration by default
steps No number Step size optional, uses the basic configuration by default (supported by version 1.30.3.047 and later)
stop No number When 1, stops after one step; for other values or if not needed, call control s again to stop (supported by version 1.30.3.047 and later)

Response Example

  {
        "msg": "xxx",
        "code": 1,
  }

Response Parameter Description

Parameter Type Description
code int Status code. 0 means success, others mean failure
msg string Failure information

Notes

  • Parameter description:
    value
    u //up
    d //down
    l //left
    r //right
    1 //upper left
    2 //upper right
    3 //lower left
    4 //lower right
    n //zoom out
    f //zoom in
    i //focus in
    o //focus out
    s //stop rotation
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.