You need to enable JavaScript to run this app.
导航
GetRecordList - 获取本地回放记录
最近更新时间:2025.06.16 17:00:38首次发布时间:2024.02.29 14:55:33
我的收藏
有用
有用
无用
无用

获取本地回放记录

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

GetRecordList

要执行的操作,取值:GetRecordList。

Version
String

2023-10-01

API的版本,取值:2023-10-01。

StreamID
String

streamxxxxuuid

流id

StartTime
Integer

1749201386

起始时间

EndTime
Integer

1749201396

结束时间

RecordType
String

all

录制类型

  • all
  • alarm
  • time
  • manual
TimeoutInSec
Integer

1

延后时间

Order
String

1

排序

DeviceNSID
String

314000000xxxx101011

国标id

ChannelID
String

940000000xxxx101011

通道id

Resolution
String

1

国标分辨率参数

StreamingIndex
Integer

0-主码流;1-子码流1;2-子码流2, 以此类推

主子码流

SpaceID
String

spaceuuidxxxx

流/通道所属空间ID

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
Items
Array of Object

record 列表

Num
Integer

10

record数量

请求示例

POST /?Action=GetRecordList&Version=2023-10-01&StreamID=1b&StartTime=583&EndTime=86&RecordType=XoZo&TimeoutInSec=348&Order=37m0&DeviceNSID=uoZJw3lrj&ChannelID=Xh4ShRTvU HTTP/1.1
Host: open.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20241219T070113Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20241219/cn-beijing/aiotvideo/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

{}

返回示例

{
  "ResponseMetadata": {
    "RequestId": "202412191501171950081451368D457A",
    "Action": "GetRecordList",
    "Version": "2023-10-01",
    "Service": "aiotvideo",
    "Region": "cn-beijing"
  },
  "Result": {
    "Items": [
      {
        "ChannelID": "34020000001320000001",
        "Name": "录像01",
        "StartTime": "2023-06-08T02:29:27",
        "EndTime": "2023-06-08T03:39:49",
        "StartTimeStamp": 1686162567,
        "EndTimeStamp": 1686166789,
        "Secrecy": "1",
        "Type": "bi8n",
        "FileSize": "1000000"
      }
    ],
    "Num": 340
  }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
InvalidParameterGetRecordListArgs

InvalidParameter.GetRecordListArgs

500
InternalErrorDeviceOffline

InternalError.DeviceOffline

500
ErrorDeviceSipTimeout

InternalError.SipTimeout

500
ErrorDeviceSipError

InternalError.SipError

500
InternalError.DeviceOffline

The request is failed due to the device is offline.