Obtain video settings
1.API Description
This API is used to obtain video settings.
Request mode: GET/POST [ip]/api/video/config/get
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
None.
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Integer | Status code |
code | String | Status description. |
data | struct | Refer to video settings. |
Video Settings
Name | Type | Description |
---|---|---|
h_flip | Boolean | Whether to mirror. |
v_flip | Boolean | Whether to flip. |
ar_convert_mode | 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. |
4. Example
Obtaining the video settings.
Input Example
None
Output Example
{
"status": 0,
"code" : "Success",
"data" : {
"h_flip": true,
"v_flip": false,
"ar_convert_mode": "Windowbox"
}
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.