Get DVR ranges: Stream.Dvr.Ranges

Returns DVR time ranges for the specified streams

Parameters

params: object


params.cameras: object

No description

params.cameras...

params.cameras{}: array|object

One of 2 variants

No description


params.cameras{}<0>: RangesList aka object

No description


params.cameras{}<0>{}: RangeObject aka object

No description


params.cameras{}<0>{}.from: null|integer

optional nullable

Default:

JSON
0

DVR range beginning in unix timestamp seconds


params.cameras{}<0>{}.to: null|integer

optional nullable

Default:

JSON
0

DVR range ending in unix timestamp seconds


params.cameras{}<1>: UidArray aka array

Min size: 1

List of UIDs


params.cameras{}<1>[]: Uid aka string

Pattern: ^[a-zA-Z0-9_-]+$

Unique identifier used throughout the system



Result

result: object


result{}: any

No description


POST /api/

JSON
{
  "jsonrpc": "2.0",
  "method": "Stream.Dvr.Ranges",
  "params": {
    "cameras": {
      "camera_uuid": {
        "stream_uuid": {
          "from": 0,
          "to": 100
        }
      }
    }
  },
  "id": 123
}
cURL
Bash
curl -k --request POST \
    --url 'https://your-domain/api/' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <api-authorization-token>' \
    --data '{
  "jsonrpc": "2.0",
  "method": "Stream.Dvr.Ranges",
  "params": {
    "cameras": {
      "camera_uuid": {
        "stream_uuid": {
          "from": 0,
          "to": 100
        }
      }
    }
  },
  "id": 123
}'

200 OK

JSON
{
  "jsonrpc": "2.0",
  "result": {
    "camera_uuid": {
      "stream_uuid": {
        "from": 0,
        "to": 100
      }
    }
  },
  "id": 123
}

400 Bad Request

JSON
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32601,
    "message": "Method not found"
  },
  "id": 123
}

500 Internal Server Error

Server error