Set PTZ Zoom
1. API Description
Set PTZ zoom.
Request mode: POST [ip]/api/ptz/zoom/set
| Administrator Rights | Login Authentication |
|---|---|
| No | Yes |
2. Input Parameters
| Parameter | Type | Description |
|---|---|---|
| speed | float | Zoom direction and speed, range [-1,1], negative for zoom out, positive for zoom in |
| value | float | Zoom value, range 0-1, 0 means zoom to maximum, 1 means zoom to minimum |
Note: Only one of speed or value can be provided. If both are provided, value takes precedence. speed=0 means stop.
3. Output Parameters
| Parameter | Type | Description |
|---|---|---|
| status | Int | Status code |
4. Example
Set zoom to half
Input Example
{
"value": 0.5
}
Output Example
{
"status": 0
}