get_video_units
This request is used only for Wialon Local. It returns a list of units with available live stream.
svc=user/get_video_units¶ms={}
Response
{
"video_srv":"<text>", /* external URL of the video server */
"units":[
{
"id":<long>,
"name":"<text>",
"unique_id":"<text>",
"hw_type":"<text>",
"video_uri":"<text>",
"cameras":"<text>",
"connected":<int>, /* 1 - connected, 0 - disconnected */
"icon_uri":"<text>",
"cmds":[
{
"id":<long>,
"n":"<text>", /* command name */
"c":"<text>", /* real command name */
"l":"<text>", /* real command link type */
"p":"<text>", /* real command parameter */
"a":<long>, /* command ACL */
"f":<uint>, /* command flags */
"ct":<long>, /* creation time */
"mt":<long> /* modification time */
},
...
]
},
...
]
}
If the user has no units, an empty object is returned:
{}
Error codes
| Error code | Description |
|---|---|
| 7 | The host is not running Wialon Local, or access denied. |
| 14 | Video service unavailable. |