添加用户自定义直播录制模板
POST
https://live.jdcloud-api.com/v1/recordCustoms:template
名称 | 类型 | 是否必需 | 默认值 | 描述 |
---|---|---|---|---|
recordPeriod | Integer | True | 自动录制周期 - 取值: [15,360] - 单位: 分钟 |
|
saveBucket | String | True | 存储桶 |
|
saveEndpoint | String | True | endpoint |
|
recordFileType | String | True | 录制文件格式: - 取值: ts,flv,mp4 (多种类型之间用;隔开) - 不区分大小写 |
|
template | String | True | 录制模板自定义名称: - 取值要求:数字、大小写字母或短横线("-") - 注意: 不能与已定义命名重复 |
名称 | 类型 | 描述 |
---|---|---|
requestId | String | requestId |
返回码 | 描述 |
---|---|
200 | OK |
400 | Invalid parameter |
401 | Authentication failed |
404 | Not found |
500 | Internal server error |
503 | Service unavailable |
POST
https://live.jdcloud-api.com/v1/recordCustoms:template
{ "recordFileType": "mp4;flv", "reordPeriod": 30, "saveBucket": "testbucket", "saveEndpoint": "oss.xxx.com", "template": "myrecordtemplate" }
{ "requestId": "bgvmivir54gddpgi764se9f4kfr7ge41" }