更新模板
服务地址
http://api-az-cn.danghongyun.com/rest
请求方法
POST
请求参数
参数 | 说明 | 类型 | 是否必须 |
---|---|---|---|
accessKey | 访问接口的accessKey | String | 必选 |
action | API名称,此接口为 "liveTemplateUpdate" | String | 必选 |
version | API版本,目前必须为 2.0 | String | 必选 |
signature | 签名,请参考签名规则 | String | 必选 |
timestamp | API调用时间戳,1970年1月1日以来的毫秒数,如1466488681033 | String | 必选 |
id | 模板ID | String | 必选 |
displayName | 显示名称 | String | 必选 |
type | 请参考模板类型,此处必须填1 | Integer | 必选 |
transcodeType | 请参考直播类型,默认为0 | Integer | 可选 |
videoWidth | 分辨率:宽 | Integer | 必选 |
videoHeight | 分辨率:高 | Integer | 必选 |
videoBitrate | 视频码率 | Integer | 必选 |
audioBitrate | 音频码率 | Integer | 必选 |
frameRate | 视频帧率 | Integer | 必选 |
advancedArguments | 请参考高级参数 | String | 可选 |
响应示例
{
"result": {
"displayName": "sample",
"updateTime": null,
"templateId": null,
"type": "1",
"userId": 805,
"audioBitrate": 6400,
"videoHeight": 200,
"videoWidth": 200,
"videoBitrate": 800,
"frameRate": 25,
"isDefault": null,
"createTime": null,
"name": "sample\/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": null,
"videoCodec": "h264"
},
"code": 0,
"success": true,
"message": "Success"
}