跳到主要内容

新建模板

服务地址

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

请求方法

POST

请求参数

参数说明类型是否必须
accessKey访问接口的accessKeyString必选
actionAPI名称,此接口为 "liveTemplateCreate"String必选
versionAPI版本,目前必须为 2.0String必选
signature签名,请参考签名规则String必选
timestampAPI调用时间戳,1970年1月1日以来的毫秒数,如1466488681033String必选
displayName显示名称String必选
type请参考模板类型,此处必须填1Integer必选
transcodeType请参考直播类型,默认为0Integer可选
videoWidth分辨率:宽Integer必选
videoHeight分辨率:高Integer必选
videoBitrate视频码率Integer必选
audioBitrate音频码率Integer必选
frameRate视频帧率Integer必选
advancedArguments请参考高级参数String可选

响应示例

{
"code": 0,
"success": true,
"message": "operation success",
"result": {
"displayName": "live streaming template testing",
"updateTime": null,
"templateId": null,
"type": "1",
"userId": 805,
"audioBitrate": 6400,
"videoHeight": 200,
"videoWidth": 200,
"videoBitrate": 800,
"frameRate": 25,
"isDefault": null,
"createTime": null,
"name": "display name 33\/800kbps\/200x200",
"advancedArguments": "{\"rc\":\"CBR\",\"gopSize\":4000,\"bFrame\":0,\"refFrame\":1,\"qualityLevel\":null,\"interlace\":-1,\"smartBorder\":1}",
"advancedArgumentsObj": {
"rc": "CBR",
"refFrame": 1,
"gopSize": 4000,
"bframe": 0,
"interlace": -1,
"gopType": null,
"smartBorder": 1
},
"id": "1eb10a03562d4dcfab7d510366aa394c",
"transcodeType": 0,
"videoCodec": "h264"
}
}

响应字段说明

字段说明