Menambahkan satu atau beberapa aset media ke proyek pengeditan daring.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddEditingProjectMaterials |
create |
*Semua resource.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
string |
Yes |
ID proyek pengeditan daring. |
afa31b483b5c41609185de0e1b790579 |
| MaterialIds |
string |
Yes |
ID aset media. Pisahkan beberapa ID dengan koma (,). Anda dapat menentukan hingga 10 ID aset media. Catatan
Saat mengaitkan beberapa aset media, pastikan aset tersebut memiliki tipe yang sama dan tipe tersebut cocok dengan nilai MaterialType. |
d3251979f9fd41f2acb29ccda5a6f772 |
| MaterialType |
string |
Yes |
Tipe aset media. Nilai valid:
|
video |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
85237CDA-0B54-5CED-BA10-A8A71AA13C1A |
| MaterialList |
array<object> |
Daftar aset media. |
|
|
object |
Detail aset media. |
||
| Status |
string |
Status aset media. Nilai valid:
|
Normal |
| CateId |
integer |
ID kategori. |
1000487543 |
| CreateTime |
string |
Waktu pembuatan aset media. Waktu dalam format yyyy-mm-ddthh:mm:ssz (UTC). |
2019-10-02T08:26Z |
| MaterialType |
string |
Tipe aset media. Nilai valid:
|
video |
| Tags |
string |
Tag aset media. Pisahkan beberapa tag dengan koma (,). |
tag1,tag2 |
| SpriteConfig |
string |
Konfigurasi sprite. |
xxx |
| CateName |
string |
Nama kategori. |
Category 1 |
| Description |
string |
Deskripsi aset media. |
Material description |
| MaterialId |
string |
ID aset media. |
85befc4118b84c6723e53b80b1**** |
| Size |
integer |
Ukuran file. |
1682694 |
| CoverURL |
string |
URL gambar mini aset media. |
http://example.aliyundoc.com/aivideocover/46fa444aa34065cb9250f6c****/image_01.jpg |
| Duration |
number |
Durasi aset media. Unit: detik. Akurat hingga empat tempat desimal. |
3690.2332 |
| CustomerId |
integer |
ID pengguna. |
1234751840694470 |
| Title |
string |
Judul aset media. |
test |
| ModifyTime |
string |
Waktu pembaruan aset media. Waktu dalam format yyyy-mm-ddthh:mm:ssz (UTC). |
2022-11-25T07:28:34Z |
| Sprites |
array |
Array URL sprite untuk aset media. |
|
|
string |
URL sprite aset media. |
"http://example.aliyundoc.com/material_big_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=****" |
|
| Snapshots |
array |
Array URL snapshot untuk aset media. |
|
|
string |
URL snapshot aset media. |
"http://example.aliyundoc.com/material_small_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=","http://example.aliyundoc.com/material_small_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=" |
Contoh
Respons sukses
JSONformat
{
"RequestId": "85237CDA-0B54-5CED-BA10-A8A71AA13C1A",
"MaterialList": [
{
"Status": "Normal",
"CateId": 1000487543,
"CreateTime": "2019-10-02T08:26Z",
"MaterialType": "video",
"Tags": "tag1,tag2",
"SpriteConfig": "xxx",
"CateName": "Category 1",
"Description": "Material description",
"MaterialId": "85befc4118b84c6723e53b80b1****",
"Size": 1682694,
"CoverURL": "http://example.aliyundoc.com/aivideocover/46fa444aa34065cb9250f6c****/image_01.jpg",
"Duration": 3690.2332,
"CustomerId": 1234751840694470,
"Title": "test",
"ModifyTime": "2022-11-25T07:28:34Z",
"Sprites": [
"\"http://example.aliyundoc.com/material_big_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=****\""
],
"Snapshots": [
"\"http://example.aliyundoc.com/material_small_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=\",\"http://example.aliyundoc.com/material_small_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=\""
]
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.