跳到主要内容

查询直播服务

描述

查询云手机定位

请求参数

参数名参数类型是否必填参数说明
ActionString操作方法:ListLiveService,此参数为公共参数,不必放body里面
RegionString机房标识,取值参见地域列表
KeyWordString直播名称或者id
StreamNameString流名称
PageNoInteger分页
PageSizeInteger分页大小
LiveStatusString直播服务状态 ENABLE可用 UNABLE禁用
StreamStatusString推流状态 PUSHING推流中 IDLE未推流

返回参数

名称类型说明
PagePage由Page组成的数组格式,返回分页信息
ListList由List组成的数组格式,返回云手机列表信息

Page

分页信息的数据类型

名称类型说明
PageSizeInteger页面总数
CurrentPageNoInteger当前分页数
TotalPageInteger总页数
TotalCountInteger总数

List

直播列表的数据类型

名称类型说明
IdString云手机ID
LiveAppString直播app,直播地址一级标识
LiveNameString直播服务名称
LiveStatusString直播服务状态 ENABLE可用 UNABLE禁用
LiveStreamString直播流,直播地址二级标识
StreamStatusString推流状态 PUSHING推流中 IDLE未推流
LiveDeviceCntInteger在线设备数
LiveAuthCodeCntInteger授权码数
CreateTimeLong专属网络类型的IP地址
UpdateTimeLong云手机内网IP

请求示例

post https://api.chinac.com/v2/?Action=ListLiveService

{
"Region":"xxxxxx",
"KeyWord":"xxxxxxxx",
"StreamName":"xxxxxx",
"PageNo":1,
"PageSize":10,
"LiveStatus":"ENABLE",
"StreamStatus":"PUSHING"
}

返回示例

{
"code": 10000,
"message": "",
"data": {
"Page": {
"PageSize": 10,
"CurrentPageNo": 1,
"TotalPage": 1,
"TotalCount": 3
},
"List": [{
"Id": "xxxx",
"LiveApp": "xxxxx",
"LiveName": "xxx",
"LiveStatus": "ENABLE",
"LiveStream": "xxx",
"StreamStatus": "PUSHING",
"LiveDeviceCnt": 0,
"LiveAuthCodeCnt": 0,
"CreateTime": 1587467268000,
"UpdateTime": 1587467305000
}]
}
}