查询拉流配置
API 地址
api.vhallyun.com/api/v2/room/describe-live-pull-stream-config
描述
根据房间ID或拉流配置ID,查询该用户下所有或者某一个配置下的拉流信息
入参
关于公共请求参数详细内容,请参考 公共请求参数。
| 参数 | 类型 | 是否必选 | 含义 |
|---|---|---|---|
| config_id | string | 否 | 拉流配置ID 不传此参数则查询应用下所有有效配置 |
出参
| 参数 | 类型 | 是否必选 | 含义 |
|---|---|---|---|
| pull_stream_configs | object | 是 | 拉流配置信息列表 |
pull_stream_config数据类型
| 参数 | 类型 | 是否必选 | 含义 |
|---|---|---|---|
| config_id | string | 是 | 配置ID |
| room_id | string | 是 | 拉流房间ID |
| source_type | int | 是 | 标识拉流来源类型 0:第三方URL类型 1:vhall直播间类型 |
| source_url | string | 是 | 来源的视频流URL |
| source_room_id | string | 是 | 来源的vhall直播房间ID |
| start_time | string | 是 | 拉流开始时间 |
| end_time | string | 是 | 拉流结束时间 |
| pull_status | int | 是 | 直播拉流状态 0:未开始 1:直播拉流开始 2:直播拉流结束 3:直播拉流异常 |
错误码
| 错误码 | 类型 | 含义 |
|---|---|---|
| 10083 | int | 直播拉流配置ID不能为空 |
| 40040 | int | 请求参数错误 |
| 40071 | int | 参数类型错误 |
响应格式
{
"code": 200,
"msg": "",
"data": {
"pull_stream_configs":[
{
"config_id":"18930",
"room_id":"lss_893f81e9",
"source_url":"",
"source_room_id":"",
"source_type":0,
"start_time": "2019-10-17 11:23:10",
"end_time":"2019-10-19 14:10:52"
}
]
}
}
