get_video_settings
To obtain unit video settings, execute the unit/get_video_settings command. To do this, the View detailed object properties access right to the unit is required.
svc=unit/get_video_settings¶ms={"itemId":long}
Parameters
The request must contain the itemId parameter, which specifies the unit ID.
Example
svc=unit/get_video_settings¶ms={"itemId":200334}
Response
If the request is completed successfully, the response contains the video settings.
{
"settings": [
{
"flags": 1, /* If flags = 1, then the camera is active. */
"name": "cam" /* Camera name */
},
{
"flags": 3, /* If flags = 3, then the camera and video saving are active. */
"name": "cam1" /* Camera name */
}
...
]
}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Invalid input parameters. |
7 | The user doesn't have the required access right to the unit (ADF_ACL_ITEM_VIEW_PROPERTIES). |