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.
svc=unit/update_video_settings¶ms={
"itemId": <long>,
"settings": [
{
"name": <text>,
"flags": <int>
},
...
]
}
To send a request, you should have the Manage video access right to the unit.
Parameters
| Name | Description |
|---|---|
| itemId | Unit ID. |
| settings | Array of camera settings. It can contain up to 32 elements. |
| name | Camera 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.
svc=unit/update_video_settings¶ms={"itemId":45644,"settings":[{"name":"Camera 1","flags":1},{"name":"Camera 2","flags":1}]}
Response
If the request is successful, an empty JSON is returned.
{ }
Otherwise, the response contains an error code.
Error codes
| Error code | Description |
|---|---|
| 4 | Wrong input parameters, or the settings array contains more than 32 elements. |
| 6 | Failed to update the video settings. |
| 7 | No Manage video access right to the unit or no Video monitoring service. |