Home / Docs Center / Device API Reference / ONVIF LAN Camera PTZ Control

ONVIF LAN Camera PTZ Control

Device API Reference · ONVIF LAN Cameras

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

Brief Description:

  • ONVIF PTZ control

Request URL:
- /xsw/ptz

Request Method:
- GET

URL Parameters:

Parameter Required Type Description
ip Yes string Camera IP
user Yes string Camera username
pass Yes string Camera password
value Yes string Control direction, see the notes

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 1
    2 //upper right
    3 //lower left
    4 //lower right
    n //zoom in
    f //zoom out
    i //focus in
    o //focus out
    t //stop focus
    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.