Skip to main content
Skip table of contents

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
{
                "start": 1676615636,
                "stop": 1676637235,
                "length": 21600,
                "ranges":
                [
                    {
                        "duration": 6842,
                        "from": 1676615636,
                        "end": 1676622478
                    },
                    {
                        "duration": 9646,
                        "from": 1676626870,
                        "end": 1676636516
                    },
                    {
                        "duration": 34,
                        "from": 1676637201,
                        "end": 1676637235
                    }
                ]
            }
timestamp
startStart time of the archive.
timestamp
stopEnd time of the archive.
seconds
lengthDuration of the archive in seconds, taking into account intervals of breaks.
array
rangesAn array of objects describing archive intervals.
seconds
ranges.durationDuration of the archive segment in seconds.
seconds
ranges.fromStart time of the archive segment.
seconds
ranges.endEnd 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
curl -k --location --request GET 'https://localhost:8080/api/streams/{stream-uid}/ranges/?token=string'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.