直播服务详情

更新时间:2021-02-18 15:35:01

描述

直播服务详情

请求参数

参数名参数类型是否必填参数说明
Action String

操作方法:GetLiveService,此参数为公共参数,不必放body里面

Region String

机房标识,取值参见地域列表

LiveServiceId String

直播服务id

返回参数

名称 类型 说明
LiveService LiveService 由LiveService组成的对象,返回直播对象

LiveService

直播对象 名称 类型 说明
Id String 直播id
LiveName String 直播名称
LiveApp String 直播app,直播地址一级标识
LiveStream String 直播流,直播地址二级标识
LiveStatus String 直播服务状态 ENABLE可用 UNABLE禁用
StreamStatus String 推流状态 PUSHING推流中 IDLE未推流
LiveDeviceCnt Integer 设备数数
LiveAuthCodeCnt Integer 授权码数
CreateTime Long 创建时间 时间戳:1612777844875
UpdateTime Long 更新时间 时间戳:1612777844875

请求示例

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

{
   "Region":"xxxxxx",
   "LiveServiceId":"xxxxx"
}

返回示例

{
    "code": 10000,
    "message": "",
    "data": {
        "LiveService": [{
            "Id": "xxx",
            "LiveName": "xxxx",
                    "LiveApp":"xxx",
            "LiveStatus": "ENABLE",
            "StreamStatus": "PUSHING",
            "LiveDeviceCnt": 0,
                    "LiveAuthCodeCnt":0,
                   "CreateTime":1612777844875,
                   "UpdateTime":1612777844875
        }]
    }
}
*
*
*