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.

Copied!
svc=unit/get_video_settings&params={"itemId":long} 

Parameters

The request must contain the itemId parameter, which specifies the unit ID.

Example

Copied!
svc=unit/get_video_settings&params={"itemId":200334} 

Response

If the request is completed successfully, the response contains the video settings.

Copied!
{
	"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.

7The user doesn't have the required access right to the unit (ADF_ACL_ITEM_VIEW_PROPERTIES).
Download PDF file
Download Word document

See also