Menambahkan satu atau beberapa materi ke proyek pengeditan daring.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddEditingProjectMaterials |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
string |
Yes |
ID proyek pengeditan daring. |
afa31b483b5c41609185de0e1b790579 |
| MaterialIds |
string |
Yes |
ID materi. Pisahkan beberapa ID dengan koma (,). Maksimal 10 ID materi didukung. Catatan
Saat mengaitkan beberapa materi, pastikan semua materi memiliki tipe yang sama dan sesuai dengan nilai MaterialType. |
d3251979f9fd41f2acb29ccda5a6f772 |
| MaterialType |
string |
Yes |
Tipe materi. Nilai valid:
|
video. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
85237CDA-0B54-5CED-BA10-A8A71AA13C1A. |
| MaterialList |
array<object> |
Daftar materi. |
|
|
object |
Detail materi. |
||
| Status |
string |
Status materi. Nilai valid:
|
Normal. |
| CateId |
integer |
ID kategori. |
1000487543 |
| CreateTime |
string |
Pengatur waktu pembuatan materi. Waktu mengikuti format: yyyy-mm-ddthh:mm:ssz (UTC). |
2019-10-02T08:26Z |
| MaterialType |
string |
Tipe materi. Nilai valid:
|
video. |
| Tags |
string |
Tag materi. Beberapa tag dipisahkan dengan koma (,). |
tag1,tag2 |
| SpriteConfig |
string |
Konfigurasi Sprite. |
xxx. |
| CateName |
string |
Nama kategori materi. |
Kategori 1 |
| Description |
string |
Deskripsi materi. |
Deskripsi materi. |
| MaterialId |
string |
ID materi. |
85befc4118b84c6723e53b80b1**** |
| Size |
integer |
Ukuran file. |
1682694 |
| CoverURL |
string |
URL gambar mini materi. |
http://example.aliyundoc.com/aivideocover/46fa444aa34065cb9250f6c****/image_01.jpg. |
| Duration |
number |
Durasi materi. Unit: detik. Nilai akurat hingga empat tempat desimal. |
3690.2332 |
| CustomerId |
integer |
ID pengguna. |
1234751840694470 |
| Title |
string |
Judul materi. |
test. |
| ModifyTime |
string |
Pengatur waktu terakhir modifikasi materi. Waktu mengikuti format: yyyy-mm-ddthh:mm:ssz (UTC). |
2022-11-25T07:28:34Z |
| Sprites |
array |
Array URL Sprite untuk materi. |
|
|
string |
URL Sprite materi. |
"http://example.aliyundoc.com/material_big_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=****" |
|
| Snapshots |
array |
Array URL Snapshot untuk materi. |
|
|
string |
URL Snapshot materi. |
"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.