Membuat templat pemrosesan media kustom.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:CreateCustomTemplate |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama templat. |
test-template |
| Type |
integer |
Yes |
Jenis templat. Nilai yang valid:
|
1 |
| Subtype |
integer |
No |
Subjenis templat. Nilai yang valid untuk template transkoding:
Nilai yang valid untuk template snapshot:
Nilai yang valid untuk template moderasi konten berbantuan AI:
Nilai yang valid untuk template penghapusan cerdas berbantuan AI.
|
1 |
| TemplateConfig |
string |
Yes |
Konfigurasi templat. Untuk informasi selengkapnya, lihat Parameter templat. |
{"Container":{"Format":"flv"},"Video":{},"Audio":{}} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
******11-DB8D-4A9A-875B-275798****** |
| CustomTemplate |
object |
Informasi templat. |
|
| TemplateId |
string |
ID templat. |
****20b48fb04483915d4f2cd8ac**** |
| TemplateName |
string |
Nama templat. |
test-template |
| Type |
integer |
ID jenis templat. |
1 |
| TypeName |
string |
Nama jenis templat. |
TranscodeTemplate |
| Subtype |
string |
Nama subjenis templat. |
Remux |
| Status |
string |
Status templat. |
Normal |
| IsDefault |
boolean |
Menunjukkan apakah templat ini merupakan templat default. |
true |
| TemplateConfig |
string |
Konfigurasi templat. |
{"Container":{"Format":"flv"},"Video":{},"Audio":{}} |
| CreateTime |
string |
Waktu saat templat dibuat. |
2022-04-19T02:04:31Z |
| ModifiedTime |
string |
Waktu terakhir templat dimodifikasi. |
2022-04-19T02:04:31Z |
Contoh
Respons sukses
JSONformat
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"CustomTemplate": {
"TemplateId": "****20b48fb04483915d4f2cd8ac****",
"TemplateName": "test-template",
"Type": 1,
"TypeName": "TranscodeTemplate",
"Subtype": "Remux",
"Status": "Normal",
"IsDefault": true,
"TemplateConfig": "{\"Container\":{\"Format\":\"flv\"},\"Video\":{},\"Audio\":{}}",
"CreateTime": "2022-04-19T02:04:31Z",
"ModifiedTime": "2022-04-19T02:04:31Z"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.