获取当前工程绑定的所有素材。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ice:GetEditingProjectMaterials |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ProjectId |
string |
是 |
云剪辑工程 ID。 |
*****fb2101cb318***** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
******89-C21D-4B78-AE24-3788B8****** |
| ProjectId |
string |
项目 ID 号。 |
*****67ae06542b9b93e0d1c387***** |
| MediaInfos |
array<object> |
符合要求的媒资集合。 |
|
|
array<object> |
|||
| MediaId |
string |
媒资 ID。 |
*****64623a94eca8516569c8fe***** |
| MediaBasicInfo |
object |
媒资基础信息。 |
|
| MediaId |
string |
媒资 ID。 |
*****64623a94eca8516569c8f***** |
| InputURL |
string |
待注册的媒资在相应系统中的地址。 |
http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4 |
| MediaType |
string |
媒资媒体类型。 |
video |
| BusinessType |
string |
媒资业务类型。 |
general |
| Source |
string |
来源。 |
oss |
| Title |
string |
标题。 |
file.mp4 |
| Description |
string |
内容描述。 |
sample_description |
| Category |
string |
分类。 |
video |
| MediaTags |
string |
标签。 |
标签,tag1 |
| CoverURL |
string |
封面地址。 |
http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&OSSAccessKeyId=AK&Signature=signature |
| UserData |
string |
用户数据。 |
userData |
| Snapshots |
string |
截图。 |
null |
| Status |
string |
资源状态。 |
Normal |
| TranscodeStatus |
string |
转码状态。 枚举值:
|
Init |
| CreateTime |
string |
媒资创建时间。 |
2020-12-26T04:11:08Z |
| ModifiedTime |
string |
媒资修改时间。 |
2020-12-26T04:11:08Z |
| DeletedTime |
string |
媒资删除时间。 |
2020-12-26T04:11:08Z |
| SpriteImages |
string |
雪碧图。 |
null |
| FileInfoList |
array<object> |
文件信息。 |
|
|
array<object> |
|||
| FileBasicInfo |
object |
文件基础信息,包含时长,大小等。 |
|
| FileName |
string |
文件名。 |
example.mp4 |
| FileStatus |
string |
文件状态。 |
Normal |
| FileType |
string |
文件类型。 |
source_file |
| FileSize |
string |
文件大小(字节)。 |
30611502 |
| FileUrl |
string |
文件 OSS 地址。 |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires= |
| Region |
string |
文件存储区域。 |
cn-shanghai |
| FormatName |
string |
封装格式。 |
mov,mp4,m4a,3gp,3g2,mj2 |
| Duration |
string |
时长。 |
216.206667 |
| Bitrate |
string |
码率。 |
1132.68 |
| Width |
string |
宽。 |
960 |
| Height |
string |
高。 |
540 |
| LiveMaterials |
array<object> |
直播流关联素材。 |
|
|
object |
|||
| AppName |
string |
直播播流应用名。 |
testrecord |
| StreamName |
string |
直播播流流名。 |
testrecord |
| DomainName |
string |
直播播流域名。 |
test.alivecdn.com |
| LiveUrl |
string |
直播播流地址。 |
rtmp://test.alivecdn.com/testrecord/teststream |
| ProjectMaterials |
array |
剪辑工程关联素材。直播工程在直播结束后会关联到一个普通剪辑工程。 |
*****9b145c5cafc2e057304fcd***** |
|
string |
直播剪辑工程关联的普通剪辑工程 ID。 |
*****c38767ae06542b9b93e0d1***** |
示例
正常返回示例
JSON格式
{
"RequestId": "******89-C21D-4B78-AE24-3788B8******",
"ProjectId": "*****67ae06542b9b93e0d1c387*****",
"MediaInfos": [
{
"MediaId": "*****64623a94eca8516569c8fe*****",
"MediaBasicInfo": {
"MediaId": "*****64623a94eca8516569c8f*****",
"InputURL": "http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4",
"MediaType": "video",
"BusinessType": "general",
"Source": "oss",
"Title": "file.mp4",
"Description": "sample_description",
"Category": "video",
"MediaTags": "标签,tag1",
"CoverURL": "http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&OSSAccessKeyId=AK&Signature=signature",
"UserData": "userData",
"Snapshots": "null",
"Status": "Normal",
"TranscodeStatus": "Init",
"CreateTime": "2020-12-26T04:11:08Z",
"ModifiedTime": "2020-12-26T04:11:08Z",
"DeletedTime": "2020-12-26T04:11:08Z",
"SpriteImages": "null"
},
"FileInfoList": [
{
"FileBasicInfo": {
"FileName": "example.mp4",
"FileStatus": "Normal",
"FileType": "source_file",
"FileSize": "30611502",
"FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"Region": "cn-shanghai",
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"Duration": "216.206667",
"Bitrate": "1132.68",
"Width": "960",
"Height": "540"
}
}
]
}
],
"LiveMaterials": [
{
"AppName": "testrecord",
"StreamName": "testrecord",
"DomainName": "test.alivecdn.com",
"LiveUrl": "rtmp://test.alivecdn.com/testrecord/teststream"
}
],
"ProjectMaterials": [
"*****c38767ae06542b9b93e0d1*****"
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter \ is not valid. | |
| 404 | ProjectNotFound | The specified project not found |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。