查询直播中的流的信息
GET
https://live.jdcloud-api.com/v1/streams/{publishDomain}/onlineList
名称 | 类型 | 是否必需 | 默认值 | 描述 |
---|---|---|---|---|
publishDomain | String | True | 推流域名 |
名称 | 类型 | 是否必需 | 默认值 | 描述 |
---|---|---|---|---|
pageNum | Integer | False | 1 | 页码 - 取值范围[1, 100000] |
pageSize | Integer | False | 10 | 分页大小 - 取值范围[10, 100] |
appName | String | False | 应用名称 |
名称 | 类型 | 描述 |
---|---|---|
result | Result | |
requestId | String | requestId |
名称 | 类型 | 描述 |
---|---|---|
pageNumber | Integer | 当前页码 |
pageSize | Integer | 每页数量 |
totalCount | Integer | 查询总数 |
onlineStreamInfos | OnlineStreamInfo[ ] | 在线推流集合 |
名称 | 类型 | 描述 |
---|---|---|
publishDomain | String | 推流域名 |
appName | String | 应用名称 |
streamName | String | 流名称 |
publishTime | String | 推流时间 - UTC时间 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 示例:2018-10-21T10:00:00Z |
publishUrl | String | 推流地址 |
返回码 | 描述 |
---|---|
200 | OK |
400 | Invalid parameter |
401 | Authentication failed |
404 | Not found |
500 | Internal server error |
503 | Service unavailable |
GET
https://live.jdcloud-api.com/v1/streams/push.yourdomain.com/onlineList
{ "requestId": "bgvmivir54gddpgi764se9f4kfr7ge41", "result": { "onlineStreamInfos": [ { "appName": "yourapp", "publishDomain": "push.yourdomain.com", "publishTime": "2015-12-02T06:58:04Z", "publishUrl": "rtmp://push.yourdomain.com/yourapp/yourstream", "streamName": "yourstream" } ], "pageNumber": 1, "pageSize": 10, "totalCount": 1 } }