Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General request format:

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}

Request parameters:

Parameter

Is required

Description

cameraidYes

Camera ID

max_countNo

The maximum number of recordings in the response. By default, all recordings are displayed

Request example

...

:

...

Response example:

Returns time periods over which archive recordings from the specified video surveillance device are available.

...

titleNote.

...

 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). 

Code Block

Example:

GЕТ http://192.168.15.182:8095/getarchiveranges?саmeraid=1

Response:

{
languagexml
{
	"cameraid": 1,

...


	"ranges": [

...

{

		{
			"from": 1412121600, //unixtime

...


			"to": 1412172000

...


		},

...

{

		{
			"from": 1412186400,

...


			"to": 1412188200

...

}]

		}
			]
}