Home / Docs Center / Platform API / Device Recording Query-1

Device Recording Query-1

Platform API · General API

Project: Platform API | page_id: 160

Brief Description:

  • Get the local recording time ranges and playback address. The recommended maximum time interval is 1 day; query recordings within a single day at a time to prevent the device from freezing due to too many files.

Request URL:
- /product/recordFlags

Request Method:
- POST

Parameters:

Parameter Required Type Description
pId Required string Device ID
cId Required int Channel ID, starting from 1
startTime Required int64 Start time, in milliseconds
endTime Required int64 End time, in milliseconds

Response Example

{
  "url":"/vod/index.m3u8?command=record&end_time=1575043200000&channel=record0&start_time=",
  "flags": [
    {
      "start": 1575043200000,
       "end": 1575043200000
    },
     {
      "start": 1575043200000,
       "end": 1575043200000
    }
  ]
}

Response Parameter Description

Parameter Type Description
url string Recording playback address; it must be concatenated with the device address above. Modify start_time as needed.
start int64 Time range start in milliseconds
end int64 Time range end in milliseconds

Notes

  • Applicable to self-hosted platforms
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.