Home / Docs Center / Device API Reference / PTZ Control
PTZ Control
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.