update_video_settings

Can only be used in Wialon Hosting.

The unit/update_video_settings method is used to configure the live stream name and unload video from cameras.

Copied!
svc=unit/update_video_settings&params={
 "itemId":long,
 "settings":[{"name":"text","flags":int},{"name":"text","flags":int}...]}

Parameters

NameDescription
itemIdUnit ID.
nameCamera name.
flags

Unloading flag. If flags:1 is indicated for a camera, the video from this camera is unloaded. If flags:0 is indicated, it is not.

Example

Below is an example of the unit/update_video_settings request.

Copied!
svc=unit/update_video_settings&params={"itemId":45644,"settings":"settings":[{"name":"Camera 1","flags":1},{"name":"Camera 2","flags":1}]}

Response

If the request is successful, an empty JSON is returned.

Copied!
{ }

Otherwise, the response contains an error code.

Error codes

Error code Description
4 Wrong input parameters.
6 Failed to update the video settings.
7 No ADF_ACL_ITEM_EDIT_OTHER access right to the unit or no Video monitoring service.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also