Adds one or more media assets to an online editing project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddEditingProjectMaterials |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
string |
Yes |
The ID of the online editing project. |
afa31b483b5c41609185de0e1b790579 |
| MaterialIds |
string |
Yes |
The IDs of the media assets. Separate multiple IDs with commas (,). You can specify up to 10 media asset IDs. Note
When you associate multiple media assets, make sure that they are of the same type and the type matches the value of MaterialType. |
d3251979f9fd41f2acb29ccda5a6f772 |
| MaterialType |
string |
Yes |
The type of the media asset. Valid values:
|
video |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
85237CDA-0B54-5CED-BA10-A8A71AA13C1A |
| MaterialList |
array<object> |
The list of media assets. |
|
|
object |
The details of the media asset. |
||
| Status |
string |
The status of the media asset. Valid values:
|
Normal |
| CateId |
integer |
The ID of the category. |
1000487543 |
| CreateTime |
string |
The time when the media asset was created. The time is in the yyyy-mm-ddthh:mm:ssz format (UTC). |
2019-10-02T08:26Z |
| MaterialType |
string |
The type of the media asset. Valid values:
|
video |
| Tags |
string |
The tags of the media asset. Separate multiple tags with commas (,). |
tag1,tag2 |
| SpriteConfig |
string |
The sprite configuration. |
xxx |
| CateName |
string |
The name of the category. |
Category 1 |
| Description |
string |
The description of the media asset. |
Material description |
| MaterialId |
string |
The ID of the media asset. |
85befc4118b84c6723e53b80b1**** |
| Size |
integer |
The size of the file. |
1682694 |
| CoverURL |
string |
The URL of the media asset thumbnail. |
http://example.aliyundoc.com/aivideocover/46fa444aa34065cb9250f6c****/image_01.jpg |
| Duration |
number |
The duration of the media asset. Unit: seconds. Accurate to four decimal places. |
3690.2332 |
| CustomerId |
integer |
The ID of the user. |
1234751840694470 |
| Title |
string |
The title of the media asset. |
test |
| ModifyTime |
string |
The time when the media asset was updated. The time is in the yyyy-mm-ddthh:mm:ssz format (UTC). |
2022-11-25T07:28:34Z |
| Sprites |
array |
The array of sprite URLs for the media asset. |
|
|
string |
The sprite URL of the media asset. |
"http://example.aliyundoc.com/material_big_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=****" |
|
| Snapshots |
array |
The array of snapshot URLs for the media asset. |
|
|
string |
The snapshot URL of the media asset. |
"http://example.aliyundoc.com/material_small_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=","http://example.aliyundoc.com/material_small_snapshot/0f325c157386f2a7e91b2ff0****.jpg?auth_key=" |
Examples
Success response
JSON format
{
"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=\""
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.