Update video settings
1.API Description
This API is used to update video settings. Only the parameters to be modified are required, and the unchanged ones can be omitted.
Request mode: POST [ip]/api/video/config/update
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Type | Description |
---|---|---|
data | struct | Refer to video settings. |
Video Settings
Name | Required | Type | Description |
---|---|---|---|
h_flip | No | Boolean | Whether to mirror. |
v_flip | No | Boolean | Whether to flip. |
ar_convert_mode | No | String | Aspect ratio conversion modes include "Windowbox": minimum proportion conversion, fill the unfilled part with black edges; "Crop": maximum proportion conversion, cut off the excess part; "Stretch": tile. |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
code | String | Status description. |
4. Example
Updating the video settings.
Input Example
{
"data" : {
"h_flip": true,
"v_flip": false,
"ar_convert_mode": "Windowbox"
}
}
Output Example
{
"status": 0,
"code" : "Success"
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.