跳到主要内容

启动直播

服务地址

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

请求方法

POST

请求参数

参数说明类型是否必须
accessKey访问接口的accessKeyString必选
actionAPI名称,此接口为 "liveStartChannel"String必选
versionAPI版本,目前必须为 2.0String必选
signature签名,请参考签名规则String必选
timestampAPI调用时间戳,1970年1月1日以来的毫秒数,如 1466488681033String必选
id直播频道IDString必选

响应示例

{
"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": 2,
"streamStatus": 1,
"userId": 106,
"streamWidth": 1280,
"streamHeight": 720,
"streamBitrate": 2560000,
"streamAudioBitrate": 163840,
"streamFrameRate": null,
"createTime": 1542695555000,
"updateTime": 1542695626000,
"startTime": 1542695626717,
"endTime": null,
"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": "E6F5CBD1-6F21-4328-BE83-95608EC292ED",
"isLiveEncrypt": "0",
"customerId": null,
"contentId": null,
"createTime": 1542695567000,
"updateTime": 1542695625000,
"liveLogoId": "",
"liveLogo": null,
"logoId": null,
"rtmpThirdPartyOutputUrl": null,
"isRecord": "1",
"recordTaskId": "8841C0CE-C5C4-4530-A4F1-1544074B3BD4",
"recordStartTime": 1542695624122,
"needToMp4": null,
"isTimeShift": "1",
"timeShiftDuration": "2", "timeShiftTaskId":"http://172.17.230.223:8080/p1u0enox/live/hls/b29f64a6796f4268ab980c869587fbe5/67724a415cfa44c298945e891db4c2e8.m3u8",
"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": "7A6CD8D0-06CC-481C-8932-647E3E760DC8",
"isLiveEncrypt": null,
"customerId": null,
"contentId": null,
"createTime": 1542695567000,
"updateTime": 1542695626000,
"liveLogoId": null,
"liveLogo": null,
"logoId": null,
"rtmpThirdPartyOutputUrl": null,
"isRecord": "1",
"recordTaskId": "5327DFEE-BDEC-40FD-A500-0D2C8B1A9A5F",
"recordStartTime": 1542695625873,
"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
}

响应字段说明

参见直播频道信息