Skip to main content

Get Channel Playback URLs

Service Address

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

Request Method

GET

Request Parameters

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

Response Example

{
"code": 0,
"message": "operation success",
"result": [{
"channelId": "b29f64a6796f4268ab980c869587fbe5",
"channelGroupId": "67724a415cfa44c298945e891db4c2e8",
"channelGroupType": 1,
"playUrl": "http://p1u0enox.live1.danghongyun.local/live/hls/b29f64a6796f4268ab980c869587fbe5/67724a415cfa44c298945e891db4c2e8.m3u8",
"playUrlList": [{
"url": "http://p1u0enox.live1.danghongyun.local/live/hls/b29f64a6796f4268ab980c869587fbe5/67724a415cfa44c298945e891db4c2e8-2.m3u8",
"width": 640,
"height": 352,
"videoBitrate": 270,
"audioBitrate": 64,
"defaultVideo": "1"
},
{
"url": "http://p1u0enox.live1.danghongyun.local/live/hls/b29f64a6796f4268ab980c869587fbe5/67724a415cfa44c298945e891db4c2e8-1.m3u8",
"width": 720,
"height": 576,
"videoBitrate": 450,
"audioBitrate": 64,
"defaultVideo": "0"
}]
},
{
"channelId": "b29f64a6796f4268ab980c869587fbe5",
"channelGroupId": "f1fdabf94e2e4653baccfc423a9cdca7",
"channelGroupType": 2,
"playUrl": "rtmp://172.17.230.223/live/p1u0enox_f1fdabf94e2e4653baccfc423a9cdca7",
"playUrlList": [{
"url": "rtmp://172.17.230.223/live/p1u0enox_f1fdabf94e2e4653baccfc423a9cdca7",
"width": 640,
"height": 352,
"videoBitrate": 270,
"audioBitrate": 64,
"defaultVideo": "1"
}]
}],
"success": true
}

Response Fields

Channel playback urls

FieldDescription
channelIdlive channel Id
channelGroupIdoutput group id
channelGroupTypeoutput group protocol type 1 hls 2 rtmp
playUrlparent playback address
playUrlListchild playlist information, see Stream

Stream

FieldDescription
urlchild playback address
widthvideo width
heightvideo high
videoBitratevideo bitrate
audioBitrateaudio bitrate
defaultVideodefault 0 no 1 yes