Get Channel Playback URLs
Service Address
http://api-az-cn.danghongyun.com/rest
Request Method
GET
Request Parameters
Parameter | Description | Type | Required |
---|---|---|---|
accessKey | The user access key | String | Required |
action | API name, this api is "liveGetChannelsPlayUrl" | String | Required |
version | API version, currently must be 2.0 | String | Required |
signature | Signature generated by signature rule. | String | Required |
timestamp | Invoke time in milliseconds since january 1 1970, eg: 1466488681033 | String | Required |
channelId | live channels id | String | Required |
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
Field | Description |
---|---|
channelId | live channel Id |
channelGroupId | output group id |
channelGroupType | output group protocol type 1 hls 2 rtmp |
playUrl | parent playback address |
playUrlList | child playlist information, see Stream |
Stream
Field | Description |
---|---|
url | child playback address |
width | video width |
height | video high |
videoBitrate | video bitrate |
audioBitrate | audio bitrate |
defaultVideo | default 0 no 1 yes |