查询最近已关闭媒体流记录
GET /strm/recent_closed
本接口用于查询最近的已关闭的媒体流记录(一个媒体流记录为一个终端媒体通道的初始打开请求及其后续并发请求,如果为远程录像回放,则只有一个初始打开请求)。 最多返回1000条最近已关闭媒体流记录。
请求
GET https://n11.gratour.info:7011/strm/recent_closed?__page=1&__limit=20
Authorization: Basic YWRtaW46YWRtaW4
查询参数
参数 | 数据类型 | 必要 | 说明 |
---|---|---|---|
reqId | string | 媒体流请求ID。指定此参数时查询特定的已关闭媒体流记录。如果该媒体流未关闭,则无记录返回。 | |
simNo | string | 终端识别号。指定此参数时,查询指定的终端的已关闭媒体流记录。 | |
__page | int | 分页的第几页,从1 开始。不指定时,值视为1 。 | |
__limit | int | 分页每页记录数,必须大于等于1 ,小于等于2000 。不指定时,值视为20 。 |
应答实体
{
"data": [
{
"simNo": "8888000003",
"chanId": 2,
"live": true,
"liveDataTyp": 0,
"codeStrm": 1,
"createTm": 1658372941899,
"srcDetectTm": 1658372941908,
"ready": true,
"readyTm": 1658372941908,
"closeTm": 1658372949601,
"recv": 223288,
"byteRate": 29044,
"sendToClnt": 198708,
"aFmt": "ADPCMA (26)",
"vFmt": "H.264 (2)",
"vRez": "352x288",
"frameRate": 16.0,
"mediaTyp": "av",
"requests": [
{
"reqId": "xvp7GtzpSNOod6JM7lOzlg",
"userId": "",
"reqTm": 1658372941900,
"fmt": 0,
"lastKeepTm": 1658372945331,
"readyTm": 1658372941908,
"closeTm": 1658372949594,
"closeCause": 1
}
]
},
{
"simNo": "8888000003",
"chanId": 1,
"live": true,
"liveDataTyp": 0,
"codeStrm": 1,
"createTm": 1658372941219,
"srcDetectTm": 1658372941315,
"ready": true,
"readyTm": 1658372941317,
"closeTm": 1658372949602,
"recv": 1590192,
"byteRate": 187525,
"sendToClnt": 1521773,
"aFmt": "G.726 (8)",
"vFmt": "H.264 (2)",
"vRez": "1280x720",
"frameRate": 15.634771,
"mediaTyp": "av",
"requests": [
{
"reqId": "jQ-nI3WLQqm1GI4MYtZztw",
"userId": "",
"reqTm": 1658372941224,
"fmt": 0,
"lastKeepTm": 1658372945331,
"readyTm": 1658372941317,
"closeTm": 1658372949594,
"closeCause": 1
}
]
},
{
"simNo": "8888000003",
"chanId": 4,
"live": true,
"liveDataTyp": 0,
"codeStrm": 1,
"createTm": 1658372943962,
"srcDetectTm": 1658372943971,
"ready": true,
"readyTm": 1658372943971,
"closeTm": 1658372949602,
"recv": 137351,
"byteRate": 22890,
"sendToClnt": 119558,
"aFmt": "G.726 (8)",
"vFmt": "H.264 (2)",
"vRez": "352x288",
"frameRate": 10.416667,
"mediaTyp": "av",
"requests": [
{
"reqId": "7l_BTCbTQS-zWWttc29Gdw",
"userId": "",
"reqTm": 1658372943963,
"fmt": 0,
"lastKeepTm": 1658372945331,
"readyTm": 1658372943971,
"closeTm": 1658372949595,
"closeCause": 1
}
]
},
{
"simNo": "8888000003",
"chanId": 3,
"live": true,
"liveDataTyp": 0,
"codeStrm": 1,
"createTm": 1658372943003,
"srcDetectTm": 1658372943012,
"ready": true,
"readyTm": 1658372943012,
"closeTm": 1658372949601,
"recv": 193688,
"byteRate": 26987,
"sendToClnt": 147174,
"aFmt": "G.711A (6)",
"vFmt": "H.264 (2)",
"vRez": "352x288",
"frameRate": 16.0,
"mediaTyp": "av",
"requests": [
{
"reqId": "z4WzKbUDQ_KmuidODdP9kA",
"userId": "",
"reqTm": 1658372943004,
"fmt": 0,
"lastKeepTm": 1658372945331,
"readyTm": 1658372943012,
"closeTm": 1658372949595,
"closeCause": 1
}
]
}
],
"count": 4,
"errCode": 0,
"message": "成功。"
}
应答实体属性
属性 | 数据类型 | 必要 | 说明 |
---|---|---|---|
errCode | int | Y | 错误码。 |
message | string | Y | 错误信息。 |
data | array[StrmStatus] | 返回的结果对象数组。元素为StrmStatus类型 | |
count | int | 返回的记录数 |