The method and parameters
|
POST /api/v1/cameras/video |
If the archive link contains the move_to field, it indicates that the requested archive time precedes the actual start of the available archive. To prevent playback errors, the system automatically shifts the requested time to the value specified in move_to.
The expired_at field specifies the exact time until which the link remains valid. After this timestamp, the token becomes invalid.
Additionally, you can include the user's integration token in the request. If the user has access to the specified camera, a valid archive link will be generated.
{
"cameras": [
{
"uuid": "uuid",
"stream_type": "high",
"archive_ranges": true,
"date": "2000-01-01T00:00:00Z"
}
],
"source": "hls",
"ttl": "100"
}
array cameras required – an array of UUIDs of cameras for which you are retrieving links. Each camera object has the following properties:
-
uuid – the UUID of the camera for which the link is to be generated. This field is required.
-
stream_type – a type of the video stream. If omitted or set to camera, the link will be generated for this camera. If the stream type is specified, the link will be generated for that particular stream type.
-
archive_ranges – this flag is used to include information about the available archive time ranges.
-
date – this field is used to generate the archive link and specifies the start date of the archive.
string source required – a protocol type.
-
hls – HTTP Live Streaming (the default value)
-
rtsp – Real Time Streaming Protocol
int ttl – a link lifetime in seconds.
|
200 |
|
A successful response with all parameters JSON
|
|
401 |
|
When an authorization token is passed but is invalid |