调用ListLiveTranscodeTemplates获取实时媒体转码模版列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ice:ListLiveTranscodeTemplates |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Type |
string |
否 |
模版类型。
|
normal |
| VideoCodec |
string |
否 |
视频编码。可选值:
|
H.264 |
| PageNo |
integer |
否 |
当前页码。默认值为 1。 |
1 |
| PageSize |
integer |
否 |
分页大小,每页显示条数。默认值为 10,最大值为 100。 |
20 |
| SortBy |
string |
否 |
排序,按 CreateTime 排序,默认是 desc。
|
asc |
| KeyWord |
string |
否 |
搜索关键词。模板 ID/名称,名称支持模糊搜索。 |
my_template |
| Category |
string |
否 |
模版类别。
|
customized |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID |
******3B-0E1A-586A-AC29-742247****** |
| TotalCount |
integer |
总数。 |
100 |
| TemplateContentList |
array<object> |
转码模版列表。 |
|
|
array<object> |
|||
| Name |
string |
模版名称。 |
my_template |
| TemplateId |
string |
模板 ID。 |
9b1571b513cb44f7a1ba6ae561ff46f7 |
| Type |
string |
模板类型。 |
normal |
| Category |
string |
模版类别。 |
system |
| CreateTime |
string |
创建时间。 |
2022-07-20T03:26:36Z |
| TemplateConfig |
object |
模版配置。 |
|
| VideoParams |
object |
视频参数。 |
|
| Codec |
string |
编码格式 |
264 |
| Height |
string |
视频分辨率高。 |
1280 |
| Width |
string |
视频分辨率宽。 |
720 |
| Fps |
string |
视频帧率 |
30 |
| Bitrate |
string |
视频码率。 |
2500 |
| Gop |
string |
视频 Gop,单位:帧 |
1000 |
| Profile |
string |
编码级别。 |
3 |
| AudioParams |
object |
音频参数。 |
|
| Codec |
string |
音频编码。 |
AAC |
| Bitrate |
string |
音频码率。 |
1000 |
| Samplerate |
string |
音频采样率。 |
44100 |
| Channels |
string |
声道数。 |
2 |
| Profile |
string |
编码级别。 |
aac_low |
示例
正常返回示例
JSON格式
{
"RequestId": "******3B-0E1A-586A-AC29-742247******",
"TotalCount": 100,
"TemplateContentList": [
{
"Name": "my_template",
"TemplateId": "9b1571b513cb44f7a1ba6ae561ff46f7",
"Type": "normal",
"Category": "system",
"CreateTime": "2022-07-20T03:26:36Z",
"TemplateConfig": {
"VideoParams": {
"Codec": "264",
"Height": "1280",
"Width": "720",
"Fps": "30",
"Bitrate": "2500",
"Gop": "1000",
"Profile": "3"
},
"AudioParams": {
"Codec": "AAC",
"Bitrate": "1000",
"Samplerate": "44100",
"Channels": "2",
"Profile": "aac_low"
}
}
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 403 | OperationDenied | Your account has not enabled the ICE service. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。