Example of a request:
https://192.168.1.200:8080/channels?sid=zxRc8Y7w
Example of a server response:
{
"channels" : [
{
"guid" : "thwfBTDO",
"name" : "AC-D4011",
"rights" : "783",
"codec" : "h264",
"have_mainstream" : "1",
"have_substream" : "1",
"have_ptz" : "0"
},
{
"guid" : "zXbI18iN",
"name" : "AC-D6034",
"rights" : "783",
"codec" : "h264",
"have_mainstream" : "0",
"have_substream" : "0",
"have_hardware_archive": "0",
"have_ptz" : "0",
"fish_eye": 0,
"have_voice_comm": "1",
"aspect_ratio": "auto",
"flip": "",
"rotate": "rotate90"
}
],
"remote_channels" : [
{
"guid" : "KYfarktm",
"name" : "TRASSIR TR-D7101IR1",
"rights" : "783",
"codec" : "h264",
"have_mainstream" : "1",
"have_substream" : "1",
"have_hardware_archive": "0",
"have_ptz" : "0"
"fish_eye": 0,
"have_voice_comm": "0",
"aspect_ratio": "16:9",
"flip": "hmirror",
"rotate": "",
"server_name": "e.evseenkova@trassir.com",
"server_guid": "CLDY-dba8d35263c06537"
},
],
"zombies" : [
{
"guid" : "exQtceka",
"name" : "DS-2DF7284-A 1",
"rights" : "783"
},
{
"guid" : "jrR09DoE",
"name" : "AC-D7121IR1v2 2",
"netrec_server_name": "",
"rights" : "783"
}
],
"templates" : [
{
"guid" : "JM07fBTb",
"name" : "2x2",
"columns" : "2",
"rows" : "2",
"channels" : [
"kKHVfblS",
"u8OU0fAD",
"FxTH0kTi",
"qKJHlC5I"
]
}
]
}
/*
channel rights is a 16-bit mask of rights, as described below
512 1
| |
0000 0000 0000 0000
|| ||||
|| |||`--> view live video
|| ||`--> view archive
|| |`--> adjust minor params, start record
|| `--> adjust major params like ip address
|`--> export archive or make a screenshot
`--> PTZ control
*/
The response in the given example contains the following:
- channels - channels on local server;
- remote_channels - remote and cloud channels;
- zombies - lost channels;
- templates - TRASSIR templates.
Table 100.
| Properties | Values | Description | TRASSIR version |
|---|---|---|---|
| "guid" | Unique object identifier | ≥3.1 | |
| "name" | Object name | ≥3.1 | |
| "rights" | User rights on channel | ≥3.1 | |
| "codec" | Vide codec on channel | ≥3.1 | |
| "have_mainstream" | 0 -no, 1 - yes | Main stream is enabled on the channel | ≥3.1 |
| "have_substream" | 0 -no, 1 - yes | Sub stream is enabled on channel | ≥3.1 |
| "have_hardware_archive" | 0 -no, 1 - yes | Hardware archive merge is enabled on channel | ≥3.1 |
| "have_ptz" | 0 -no, 1 - yes | PTZ protocol is used on channel | ≥3.1 |
| "fish_eye" | 0 -no, 1 - yes | Software dewarp for fisheye cameras | ≥4.0 |
| "have_voice_comm" | ≥4.0 | ||
| "aspect_ratio" | auto, 4:3, 16:9 | Aspect ratio | ≥4.0 |
| "flip" | hmirror, vmirror | Flip | ≥4.0 |
| "rotate" | rotate90, rotate180, rotate270 | Rotation | ≥4.0 |
| "server_name" | Remote channel server name | ≥3.1 | |
| "server_guid" | Unique server identifier | ≥3.1 | |
| "netrec_server_name" | The name of the server on which the lost channel archive is stored | ≥3.1 | |
| "columns" | Number of rows in a template | ≥3.1 | |
| "rows" | Number of lines in a template | ≥3.1 | |
| "channels" | ID of channels displayed in a template | ≥3.1 |

