GET http://IP-address:port/getarchiveranges?cameraid={cameraid}&max_count={max_count}
or
GET http://IP-address:port/getavailablearchiveranges?cameraid={cameraid}&max_count={max_count}
Parameter | Is required | Description |
|---|---|---|
| cameraid | Yes | Camera ID |
| max_count | No | The maximum number of recordings in the response. By default, all recordings are displayed |
GET http://127.0.0.1:80/getarchiveranges?cameraid=1
Returns time periods over which archive recordings from the specified video surveillance device are available. By default fragments are merged if the interval between them is less than 5 seconds. This time period can be changed using the SplitArchiveIntervals registry key (see Registry keys reference guide).
{
"cameraid": 1,
"ranges": [
{
"from": 1412121600, //unixtime
"to": 1412172000
},
{
"from": 1412186400,
"to": 1412188200
}
]
} |