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"
    }
}

返回data字段说明

字段名 字段类型 字段说明
count Integer 当前抽取设备总数
lives liveToken String 直播token
liveStatus Integer 直播状态(1:开启;2:暂停;3:流量不足)
liveType Integer 直播源类型(1:设备;2:流地址)
deviceId String [可选]设备序列号
channelId Integer 通道号
coverUpdate Integer 视频封面更新频率(单位:s)
streams hls String 直播流hls访问地址
coverUrl String 视频封面url
streamId Integer 码流类型(0:高清主码流;1:标清辅码流)(当直播地址由rtsp源生成时,无该字段)
job status Boolean 直播计划状态(true:开;false:关)
period String 任务周期
beginTime String 开始时间
endTime String 结束时间

样例输出

{
    "result":{
        "msg":"操作成功。",
        "code":"0",
        "data":{
            "lives":[
                {
                    "liveType":2,
                    "coverUpdate":90,
                    "streams":[
                        {
                            "coverUrl":"http://alhlscdn.lechange.cn/LCO/3f35d2d41758dc707e614c2999f8b922/20190429155036/stream_20190429155036_71e53mz34pcaprgb.jpg",
                            "hls":"http://alhlsgw.lechange.com:9001/LCO/3f35d2d41758dc707e614c2999f8b922/20190429155036/stream_20190429155036_71e53mz34pcaprgb.m3u8"
                        }
                    ],
                    "liveToken":"stream_20190429155036_71e53mz34pcaprgb",
                    "job":[
                        {
                            "period":"always",
                            "status":true
                        }
                    ],
                    "liveStatus":1
                },
                {
                    "liveType":2,
                    "coverUpdate":90,
                    "streams":[
                        {
                            "coverUrl":"http://alhlscdn.lechange.cn/LCO/aaf71e228f1da90232c0ac87803ce4b6/20191023171615/stream_20191023171615_qahzm4ml2bk93l72.jpg",
                            "hls":"http://alhlsgw.lechange.com:9001/LCO/aaf71e228f1da90232c0ac87803ce4b6/20191023171615/stream_20191023171615_qahzm4ml2bk93l72.m3u8"
                        }
                    ],
                    "liveToken":"stream_20191023171615_qahzm4ml2bk93l72",
                    "job":[
                        {
                            "period":"always",
                            "status":true
                        }
                    ],
                    "liveStatus":1
                },
                {
                    "liveType":1,
                    "coverUpdate":90,
                    "streams":[
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001375/0/0/20200907T032254/dev_MEGREZ0000001375_20200907T032254.jpg",
                            "streamId":0,
                            "hls":"https://cmgw-vpc.lechange.com:8890/LCO/MEGREZ0000001375/0/0/20200907T032254/dev_MEGREZ0000001375_20200907T032254.m3u8?proto=https"
                        },
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001375/0/0/20200907T032254/dev_MEGREZ0000001375_20200907T032254.jpg",
                            "streamId":1,
                            "hls":"https://cmgw-vpc.lechange.com:8890/LCO/MEGREZ0000001375/0/1/20200907T032254/dev_MEGREZ0000001375_20200907T032254.m3u8?proto=https"
                        },
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001375/0/0/20200907T032254/dev_MEGREZ0000001375_20200907T032254.jpg",
                            "streamId":0,
                            "hls":"http://cmgw-vpc.lechange.com:8888/LCO/MEGREZ0000001375/0/0/20200907T032254/dev_MEGREZ0000001375_20200907T032254.m3u8"
                        },
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001375/0/0/20200907T032254/dev_MEGREZ0000001375_20200907T032254.jpg",
                            "streamId":1,
                            "hls":"http://cmgw-vpc.lechange.com:8888/LCO/MEGREZ0000001375/0/1/20200907T032254/dev_MEGREZ0000001375_20200907T032254.m3u8"
                        }
                    ],
                    "liveToken":"63813c4aa4b442069748437c1bd0b749",
                    "job":[
                        {
                            "period":"always",
                            "status":true
                        }
                    ],
                    "deviceId":"MEGREZ0000001375",
                    "liveStatus":1,
                    "channelId":"0"
                },
                {
                    "liveType":1,
                    "coverUpdate":90,
                    "streams":[
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001842/0/1/20201022T113914/dev_MEGREZ0000001842_20201022T113914.jpg",
                            "streamId":1,
                            "hls":"http://cmgw-vpc.lechange.com:8888/LCO/MEGREZ0000001842/0/1/20201022T113914/dev_MEGREZ0000001842_20201022T113914.m3u8"
                        },
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001842/0/1/20201022T113914/dev_MEGREZ0000001842_20201022T113914.jpg",
                            "streamId":0,
                            "hls":"http://cmgw-vpc.lechange.com:8888/LCO/MEGREZ0000001842/0/0/20201022T113914/dev_MEGREZ0000001842_20201022T113914.m3u8"
                        },
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001842/0/1/20201022T113914/dev_MEGREZ0000001842_20201022T113914.jpg",
                            "streamId":1,
                            "hls":"https://cmgw-vpc.lechange.com:8890/LCO/MEGREZ0000001842/0/1/20201022T113914/dev_MEGREZ0000001842_20201022T113914.m3u8?proto=https"
                        },
                        {
                            "coverUrl":"http://livecloudpic.lechange.cn/LCO/MEGREZ0000001842/0/1/20201022T113914/dev_MEGREZ0000001842_20201022T113914.jpg",
                            "streamId":0,
                            "hls":"https://cmgw-vpc.lechange.com:8890/LCO/MEGREZ0000001842/0/0/20201022T113914/dev_MEGREZ0000001842_20201022T113914.m3u8?proto=https"
                        }
                    ],
                    "liveToken":"57877dd6774f4cbeb657568be0b7a621",
                    "job":[
                        {
                            "period":"always",
                            "status":true
                        }
                    ],
                    "deviceId":"MEGREZ0000001842",
                    "liveStatus":1,
                    "channelId":"0"
                }
            ],
            "count":4
        }
    },
    "id":"1cd43fdb-810b-44f4-8652-9d232dd95f1b"
}

results matching ""

    No results matching ""