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