Skip to main content

Get Channel Info

Service Address

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

Request Method

GET

Request Parameters

ParameterDescriptionTypeRequired
accessKeyThe user access keyStringRequired
actionAPI name, this api is "liveGetChannelById"StringRequired
versionAPI version, currently must be 2.0StringRequired
signatureSignature generated by signature rule.StringRequired
timestampInvoke time in milliseconds since january 1 1970, eg: 1466488681033StringRequired
idlive channels idStringRequired

Response Example

{
"code": 0,
"message": "operation success",
"result": {
"id": "b29f64a6796f4268ab980c869587fbe5",
"name": "test modify the normal channel",
"description": null,
"type": null,
"typeName": null,
"signalType": "1",
"stream": "p1u0enox_92CpuDqb",
"pullStream": null,
"pullTaskId": null,
"status": 1,
"streamStatus": 1,
"userId": 106,
"streamWidth": 1280,
"streamHeight": 720,
"streamBitrate": 2560000,
"streamAudioBitrate": 163840,
"streamFrameRate": null,
"createTime": 1542695555000,
"updateTime": 1542695775000,
"startTime": 1542695626717,
"endTime": 1542695775216,
"autoEndTime": 0,
"thumbnailUrl": "http://p1u0enox.images.danghongyun.local/thumbnail/b29f64a6796f4268ab980c869587fbe5.jpg",
"pushUrl": "rtmp://rtmp-push.danghongyun.dev/live/p1u0enox_92CpuDqb",
"publicPlayUrl": "rtmp://172.17.230.223/live/p1u0enox_92CpuDqb",
"publicFlvPlayUrl": "http://172.17.230.223:1936/live/p1u0enox_92CpuDqb.flv",
"liveType": 0,
"deviceId": null,
"fillInfo": null,
"outputGroupList": [{
"id": "67724a415cfa44c298945e891db4c2e8",
"name": null,
"protocolType": 1,
"channelId": "b29f64a6796f4268ab980c869587fbe5",
"taskId": "",
"isLiveEncrypt": "0",
"customerId": null,
"contentId": null,
"createTime": 1542695567000,
"updateTime": 1542695774000,
"liveLogoId": "",
"liveLogo": null,
"logoId": null,
"rtmpThirdPartyOutputUrl": null,
"isRecord": "1",
"recordTaskId": null,
"recordStartTime": 1542695624122,
"needToMp4": null,
"isTimeShift": "1",
"timeShiftDuration": "2",
"timeShiftTaskId": "",
"rotation": null,
"outputTemplateList": [{
"templateId": null,
"isDefault": null,
"id": "786ee85ebb7c4dad8e75bc836a55a948",
"displayName": "standard definition",
"transcodeType": 0,
"videoWidth": 720,
"videoHeight": 576,
"videoBitrate": 450,
"audioBitrate": 64,
"frameRate": 30,
"type": "2",
"userId": null,
"createTime": 3,
"updateTime": null,
"name": "standard definition/450kbps/720x576"
},
{
"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": "1a2277d64eb1418793e937e507b52f4a",
"publicOutputUrl": "http://p1u0enox.live1.danghongyun.local/live/hls/b29f64a6796f4268ab980c869587fbe5/67724a415cfa44c298945e891db4c2e8.m3u8",
"videoWidth": 640,
"videoHeight": 352,
"videoBitrate": 270,
"audioBitrate": 64,
"protocolType": 1,
"userId": 106,
"channelId": "b29f64a6796f4268ab980c869587fbe5",
"liveOutputGroupId": "67724a415cfa44c298945e891db4c2e8",
"liveTemplateId": "6c01632990dc412b911cc7ba0b45885a",
"createTime": 1542695567000,
"updateTime": null,
"isDefault": "1"
},
{
"id": "efafc802d7854acaa11d5e1852ae3be3",
"publicOutputUrl": "http://p1u0enox.live1.danghongyun.local/live/hls/b29f64a6796f4268ab980c869587fbe5/67724a415cfa44c298945e891db4c2e8.m3u8",
"videoWidth": 720,
"videoHeight": 576,
"videoBitrate": 450,
"audioBitrate": 64,
"protocolType": 1,
"userId": 106,
"channelId": "b29f64a6796f4268ab980c869587fbe5",
"liveOutputGroupId": "67724a415cfa44c298945e891db4c2e8",
"liveTemplateId": "786ee85ebb7c4dad8e75bc836a55a948",
"createTime": 1542695567000,
"updateTime": null,
"isDefault": "0"
}]
},
{
"id": "f1fdabf94e2e4653baccfc423a9cdca7",
"name": null,
"protocolType": 2,
"channelId": "b29f64a6796f4268ab980c869587fbe5",
"taskId": "",
"isLiveEncrypt": null,
"customerId": null,
"contentId": null,
"createTime": 1542695567000,
"updateTime": 1542695775000,
"liveLogoId": null,
"liveLogo": null,
"logoId": null,
"rtmpThirdPartyOutputUrl": null,
"isRecord": "1",
"recordTaskId": null,
"recordStartTime": null,
"needToMp4": null,
"isTimeShift": null,
"timeShiftDuration": null,
"timeShiftTaskId": null,
"rotation": null,
"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": "a5c0721fad3a4c83a3057223eccaf210",
"publicOutputUrl": "rtmp://172.17.230.223/live/p1u0enox_f1fdabf94e2e4653baccfc423a9cdca7",
"videoWidth": 640,
"videoHeight": 352,
"videoBitrate": 270,
"audioBitrate": 64,
"protocolType": 2,
"userId": 106,
"channelId": "b29f64a6796f4268ab980c869587fbe5",
"liveOutputGroupId": "f1fdabf94e2e4653baccfc423a9cdca7",
"liveTemplateId": "6c01632990dc412b911cc7ba0b45885a",
"createTime": 1542695567000,
"updateTime": null,
"isDefault": "1"
}]
}]
},
"success": true
}

Response Fields

See Channel.