获取直播列表
# liveList:获取直播列表
# 功能详情
获取开发者当前账号下创建的直播详情列表,包含直播地址、直播状态、直播计划等详细信息。
备注:需先通过bindDeviceLive创建直播地址,否则无法获取直播信息。
# 请求地址
https://openapi.lechange.cn/openapi/liveList
# 传入参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 合法值 | 参数说明 |
|---|---|---|---|---|---|
| token | String | 是 | 管理员accessToken | ||
| queryRange | String | 是 | 查询范围 数字取值范围为:[1,N] (N为正整数,且N>1);差值范围为:[0,99] |
# 样例输入
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"cb9c12cc9c9a11e013afe6599ac1216f",
"time":1603367402,
"nonce":"10ba3958-b861-4284-acfe-28cf5f3955dd"
},
"id":"1cd43fdb-810b-44f4-8652-9d232dd95f1b",
"params":{
"token":"At_00000ad9e6e87f0142eb92e207aec46a",
"queryRange":"1-10"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
# 返回data字段说明
| 字段名 | 字段类型 | 字段说明 | ||
|---|---|---|---|---|
| count | Integer | 当前抽取设备总数 | ||
| lives | liveToken | String | 直播token,设备通道直播的唯一标识 | |
| liveStatus | Integer | 直播状态(1:开启;2:暂停;3:流量不足) | ||
| liveType | Integer | 直播源类型,1:设备源 | ||
| deviceId | String | 设备序列号 | ||
| channelId | Integer | 通道号 | ||
| coverUpdate | Integer | 视频封面更新频率(单位:s) | ||
| streams | hls | String | 直播流hls访问地址 | |
| coverUrl | String | 视频封面url | ||
| streamId | Integer | 码流类型,0:高清主码流,1:标清辅码流 | ||
| job | status | Boolean | 直播计划状态(true:开;false:关) | |
| period | String | 直播计划周期,通过modifyLivePlan或batchModifyLivePlan进行设置 | ||
| beginTime | String | 直播计划开始时间,通过modifyLivePlan或batchModifyLivePlan进行设置 | ||
| endTime | String | 直播计划结束时间,通过modifyLivePlan或batchModifyLivePlan进行设置 | ||
# 样例输出
{
"result":{
"msg":"操作成功。",
"code":"0",
"data":{
"lives":[
{
"liveType":1,
"coverUpdate":90,
"streams":[
{
"coverUrl":"http://livecloudpic.lechange.cn/LCO/XXXXX000000XXXX/0/0/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.jpg",
"streamId":0,
"hls":"https://cmgw-vpc.lechange.com:8890/LCO/XXXXX000000XXXX/0/0/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.m3u8?proto=https"
},
{
"coverUrl":"http://livecloudpic.lechange.cn/LCO/XXXXX000000XXXX/0/0/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.jpg",
"streamId":1,
"hls":"https://cmgw-vpc.lechange.com:8890/LCO/XXXXX000000XXXX/0/1/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.m3u8?proto=https"
},
{
"coverUrl":"http://livecloudpic.lechange.cn/LCO/XXXXX000000XXXX/0/0/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.jpg",
"streamId":0,
"hls":"http://cmgw-vpc.lechange.com:8888/LCO/XXXXX000000XXXX/0/0/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.m3u8"
},
{
"coverUrl":"http://livecloudpic.lechange.cn/LCO/XXXXX000000XXXX/0/0/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.jpg",
"streamId":1,
"hls":"http://cmgw-vpc.lechange.com:8888/LCO/XXXXX000000XXXX/0/1/20200907T032254/dev_XXXXX000000XXXX_20200907T032254.m3u8"
}
],
"liveToken":"63813c4aa4b442069748437c1bd0b749",
"job":[
{
"period":"always",
"status":true
}
],
"deviceId":"XXXXX000000XXXX",
"liveStatus":1,
"channelId":"0"
}
],
"count":1
}
},
"id":"1cd43fdb-810b-44f4-8652-9d232dd95f1b"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48