GetDvrRanges
Allows you to get existing DVR recording intervals.
GET /api/streams/{stream-uid}/ranges/
Body | |||||||||
stream-uidoptional | uid | Unique stream identifier {@hint:uid} | |||||||
tokenrequired | string | API request authorization token. See Mediaserver/Web API/Authorization/CreateApiToken |
Response | |||||||||
200 | Returns a JSON object with archive intervals. | ||||||||
JSON
| |||||||||
timestamp | start | Start time of the archive. | |||||||
timestamp | stop | End time of the archive. | |||||||
seconds | length | Duration of the archive in seconds, taking into account intervals of breaks. | |||||||
array | ranges | An array of objects describing archive intervals. | |||||||
seconds | ranges.duration | Duration of the archive segment in seconds. | |||||||
seconds | ranges.from | Start time of the archive segment. | |||||||
seconds | ranges.end | End time of the archive segment. | |||||||
404 | Stream with this UID not found. | ||||||||
403 | Authorization error. Invalid or missing API access token. See Mediaserver/Web API/Authorization/CreateApiToken. |
Example | |||||||||
JSON
|