Set PTZ Focus
1. API Description
Set PTZ focus.
Request mode: POST [ip]/api/ptz/focus/set
| Administrator Rights | Login Authentication |
|---|---|
| No | Yes |
2. Input Parameters
| Parameter | Type | Description |
|---|---|---|
| speed | float | Focus direction and speed, range [-1,1], negative for zoom out, positive for zoom in |
| value | float | Focus value, range 0-1, 0 means focus at farthest, 1 means focus at closest |
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 focus to middle position
Input Example
{
"value": 0.5
}
Output Example
{
"status": 0
}