Skip to main content

Query Channels

Service Address

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

Request Method

GET

Request Parameters

ParameterDescriptionTypeRequired
accessKeyThe user access keyStringRequired
actionAPI name, this api is "liveGetChannelsByPage"StringRequired
versionAPI version, currently must be 2.0StringRequired
signatureSignature generated by signature rule.StringRequired
timestampTimestamp Invoke time in milliseconds since january 1 1970,eg 1466488681033StringRequired
startThe current page number is 1 by defaultIntegerOptional
numberThe number of impressions per page is 15 by defaultIntegerOptional
sortThe field of the results sorted, the value can be one of name, type, status, streamStatus, createTimeStringOptional
orderOrder option, asc or descStringOptional
searchTypeThe search type can only be name type all respectively search by name search by type search by name and type together and you must enter the parameter keyword at the same timeStringOptional
keywordSearch keywordsStringOptional

Response Example

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

Response Fields

See Channel.