Update Tempalte
Service Address
http://api-az-cn.danghongyun.com/rest
Request Method
POST
Request Parameter
Parameter | Description | Type | Required |
---|---|---|---|
accessKey | The user access key | String | Required |
action | API name, this api is "liveTemplateUpdate" | 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 |
id | The tempate id | String | Required |
displayName | The display name of the template | String | Optional |
type | Template Type, the default value is 1 | Integer | Optional |
transcodeType | Live Type, the default value is 0. | Integer | Optional |
videoWidth | The width of the output resolution. | Integer | Optional |
videoHeight | The height of the output resolution. | Integer | Optional |
videoBitrate | The bitrate of the output video. | Integer | Optional |
audioBitrate | The bitrate of the output audio. | Integer | Optional |
frameRate | The framerate of the output video. | Integer | Optional |
advancedArguments | Advanced Arguments | JSON Object | Optional |
Response Example
{
"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"
}