跳到主要内容

直播频道列表

服务地址

http://api-az-cn.danghongyun.com/rest

请求方法

GET

请求参数

参数说明类型是否必须
accessKey访问接口的accessKeyString必选
actionAPI名称,此接口为 "liveGetChannelsByPage"String必选
versionAPI版本,目前必须为 2.0String必选
signature签名,请参考签名规则String必选
timestampAPI调用时间戳,1970年1月1日以来的毫秒数,如 1466488681033String必选
start当前页码,不传时默认为1Integer可选
number每页展示数量,不传默认为15Integer可选
sort结果按该字段排序,只能为name, type, status, streamStatus, createTimeString可选
orderasc 顺序,desc 倒序String可选
searchType搜索类型,只能为name,type,all,分别为按name搜索,按type搜索,按name和type一起搜索,搜索时必须同时要输入参数keywordString可选
keyword搜索的关键字String可选

响应示例

{
"code": 0,
"message": "success",
"result": [{
"id": "3db23761f9824db6aa269323e04639b9",
"name": "test channel 2",
"description": null,
"type": "bbe19a6a2c1148b78d2f46cfa9e6656f",
"typeName": "test",
"signalType": "1",
"stream": "p1u0enox_PHtY9KfM",
"pullStream": "",
"pullTaskId": null,
"status": 0,
"streamStatus": 2,
"userId": 106,
"streamWidth": null,
"streamHeight": null,
"streamBitrate": null,
"streamAudioBitrate": null,
"streamFrameRate": null,
"createTime": 1542696141000,
"updateTime": 1542696141000,
"startTime": null,
"endTime": null,
"autoEndTime": null,
"thumbnailUrl": "http://p1u0enox.images.danghongyun.local/thumbnail/3db23761f9824db6aa269323e04639b9.jpg",
"pushUrl": "rtmp://rtmp-push.danghongyun.dev/live/p1u0enox_PHtY9KfM",
"publicPlayUrl": "rtmp://172.17.230.223/live/p1u0enox_PHtY9KfM",
"publicFlvPlayUrl": "http://172.17.230.223:1936/live/p1u0enox_PHtY9KfM.flv",
"liveType": 0,
"deviceId": "",
"outputGroupList": [{
"id": "706067160fad4be28d7767ae2228be8f",
"name": null,
"protocolType": 2,
"channelId": "3db23761f9824db6aa269323e04639b9",
"taskId": null,
"isLiveEncrypt": "0",
"customerId": null,
"contentId": null,
"createTime": 1542696141000,
"updateTime": 1542696141000,
"liveLogoId": "",
"outputTemplateList": [{
"templateId": null,
"isDefault": null,
"id": "6c01632990dc412b911cc7ba0b45885a",
"displayName": "ordinary",
"transcodeType": 0,
"videoWidth": 640,
"videoHeight": 352,
"videoBitrate": 270,
"audioBitrate": 64,
"frameRate": 30,
"type": "2",
"userId": null,
"createTime": 2,
"updateTime": null,
"name": "ordinary/270kbps/640x352"
}],
"liveOutputs": [{
"id": "f0f58d527161458a93959b7c0bf6372b",
"publicOutputUrl": "rtmp://172.17.230.223/live/p1u0enox_706067160fad4be28d7767ae2228be8f",
"videoWidth": 640,
"videoHeight": 352,
"videoBitrate": 270,
"audioBitrate": 64,
"protocolType": 2,
"userId": 106,
"channelId": "3db23761f9824db6aa269323e04639b9",
"liveOutputGroupId": "706067160fad4be28d7767ae2228be8f",
"liveTemplateId": "6c01632990dc412b911cc7ba0b45885a",
"createTime": 1542696141000,
"updateTime": null,
"isDefault": "1"
}],
"liveLogo": null,
"logoId": null,
"rtmpThirdPartyOutputUrl": "",
"isRecord": "0",
"recordTaskId": null,
"recordStartTime": null,
"needToMp4": "0",
"isTimeShift": "0",
"timeShiftDuration": "",
"timeShiftTaskId": null,
"rotation": "0"
}],
"fillInfo": null
},
{
"id": "941a850390334c9cb77ba69d3cd1995c",
"name": "test channel 3",
"description": null,
"authCode": "R5CG75",
"type": "bbe19a6a2c1148b78d2f46cfa9e6656f",
"typeName": "test",
"signalType": "1",
"stream": "p1u0enox_0veBeQU0",
"pullStream": "",
"pullTaskId": null,
"status": 0,
"streamStatus": 2,
"userId": 106,
"streamWidth": null,
"streamHeight": null,
"streamBitrate": null,
"streamAudioBitrate": null,
"streamFrameRate": null,
"createTime": 1542696168000,
"updateTime": 1542696168000,
"startTime": null,
"endTime": null,
"autoEndTime": null,
"thumbnailUrl": "http://p1u0enox.images.danghongyun.local/thumbnail/941a850390334c9cb77ba69d3cd1995c.jpg",
"pushUrl": "rtmp://rtmp-push.danghongyun.dev/live/p1u0enox_0veBeQU0",
"publicPlayUrl": "rtmp://172.17.230.223/live/p1u0enox_0veBeQU0",
"publicFlvPlayUrl": "http://172.17.230.223:1936/live/p1u0enox_0veBeQU0.flv",
"liveType": 0,
"deviceId": "",
"outputGroupList": [{
"id": "e8cf04dc09634a20aeade2b8a1b739c3",
"name": null,
"protocolType": 1,
"channelId": "941a850390334c9cb77ba69d3cd1995c",
"taskId": null,
"isLiveEncrypt": "0",
"customerId": null,
"contentId": null,
"createTime": 1542696168000,
"updateTime": 1542696168000,
"liveLogoId": "",
"outputTemplateList": [{
"templateId": null,
"isDefault": null,
"id": "43ca60d4dc9143bcb7410a4444233e47",
"displayName": "high definition",
"transcodeType": 0,
"videoWidth": 1280,
"videoHeight": 720,
"videoBitrate": 750,
"audioBitrate": 64,
"frameRate": 30,
"type": "2",
"userId": null,
"createTime": 4,
"updateTime": null,
"name": "high definition/750kbps/1280x720"
}],
"liveOutputs": [{
"id": "5d867189443d414599ff73ebfca38522",
"publicOutputUrl": "http://p1u0enox.live1.danghongyun.local/live/hls/941a850390334c9cb77ba69d3cd1995c/e8cf04dc09634a20aeade2b8a1b739c3.m3u8",
"videoWidth": 1280,
"videoHeight": 720,
"videoBitrate": 750,
"audioBitrate": 64,
"protocolType": 1,
"userId": 106,
"channelId": "941a850390334c9cb77ba69d3cd1995c",
"liveOutputGroupId": "e8cf04dc09634a20aeade2b8a1b739c3",
"liveTemplateId": "43ca60d4dc9143bcb7410a4444233e47",
"createTime": 1542696168000,
"updateTime": null,
"isDefault": "1"
}],
"liveLogo": null,
"logoId": null,
"rtmpThirdPartyOutputUrl": "",
"isRecord": "0",
"recordTaskId": null,
"recordStartTime": null,
"needToMp4": "0",
"isTimeShift": "0",
"timeShiftDuration": "",
"timeShiftTaskId": null,
"rotation": "0"
}],
"fillInfo": null
}],
"count": 3,
"success": true
}

响应字段说明

参见直播频道信息