调用GetEditingProjectMaterials获取当前工程绑定的所有素材。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetEditingProjectMaterials

系统规定参数。取值:GetEditingProjectMaterials

ProjectId String *****fb2101cb318*****

云剪辑工程ID

返回数据

名称 类型 示例值 描述
RequestId String ******89-C21D-4B78-AE24-3788B8******

请求ID信息

ProjectId String *****67ae06542b9b93e0d1c387*****

项目ID号

MediaInfos Array of MediaInfo

符合要求的媒资集合

MediaId String *****64623a94eca8516569c8fe*****

媒资ID

MediaBasicInfo Object

BasicInfo

MediaId String *****64623a94eca8516569c8f*****

MediaId

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

转码状态

-Init

-Transcoding

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 of FileInfo

FileInfos

FileBasicInfo Object

文件基础信息,包含时长,大小等

FileName String example.mp4

文件名

FileStatus String Normal

文件状态

FileType String source_file

文件类型

FileSize String 30611502

文件大小(字节)

FileUrl String http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=<ExpireTime>&OSSAccessKeyId=<OSSAccessKeyId>&Signature=<Signature>&security-token=<SecurityToken>

文件oss地址

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 of LiveStreamConfig

直播流关联素材

AppName String testrecord

直播播流应用名

StreamName String testrecord

直播播流流名

DomainName String test.alivecdn.com

直播播流域名

LiveUrl String rtmp://test.alivecdn.com/testrecord/teststream

直播播流地址

ProjectMaterials String *****9b145c5cafc2e057304fcd*****

剪辑工程关联素材。直播工程在直播结束后会关联到一个普通剪辑工程

示例

请求示例

http(s)://[Endpoint]/?Action=GetEditingProjectMaterials
&ProjectId=*****fb2101cb318*****
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetEditingProjectMaterialsResponse>
    <RequestId>******89-C21D-4B78-AE24-3788B8******</RequestId>
    <ProjectId>*****67ae06542b9b93e0d1c387*****</ProjectId>
    <MediaInfos>
        <MediaId>*****64623a94eca8516569c8fe*****</MediaId>
        <MediaBasicInfo>
            <MediaId>*****64623a94eca8516569c8f*****</MediaId>
            <InputURL>http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4</InputURL>
            <MediaType>video</MediaType>
            <BusinessType>general</BusinessType>
            <Source>oss</Source>
            <Title>file.mp4</Title>
            <Description>sample_description</Description>
            <Category>video</Category>
            <MediaTags>标签,tag1</MediaTags>
            <CoverURL>http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&amp;OSSAccessKeyId=AK&amp;Signature=signature</CoverURL>
            <UserData>userData</UserData>
            <Snapshots>null</Snapshots>
            <Status>Normal</Status>
            <TranscodeStatus>Init</TranscodeStatus>
            <CreateTime>2020-12-26T04:11:08Z</CreateTime>
            <ModifiedTime>2020-12-26T04:11:08Z</ModifiedTime>
            <DeletedTime>2020-12-26T04:11:08Z</DeletedTime>
            <SpriteImages>null</SpriteImages>
        </MediaBasicInfo>
        <FileInfoList>
            <FileBasicInfo>
                <FileName>example.mp4</FileName>
                <FileStatus>Normal</FileStatus>
                <FileType>source_file</FileType>
                <FileSize>30611502</FileSize>
                <FileUrl>http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&lt;ExpireTime&gt;&amp;OSSAccessKeyId=&lt;OSSAccessKeyId&gt;&amp;Signature=&lt;Signature&gt;&amp;security-token=&lt;SecurityToken&gt;</FileUrl>
                <Region>cn-shanghai</Region>
                <FormatName>mov,mp4,m4a,3gp,3g2,mj2</FormatName>
                <Duration>216.206667</Duration>
                <Bitrate>1132.68</Bitrate>
                <Width>960</Width>
                <Height>540</Height>
            </FileBasicInfo>
        </FileInfoList>
    </MediaInfos>
    <LiveMaterials>
        <AppName>testrecord</AppName>
        <StreamName>testrecord</StreamName>
        <DomainName>test.alivecdn.com</DomainName>
        <LiveUrl>rtmp://test.alivecdn.com/testrecord/teststream</LiveUrl>
    </LiveMaterials>
    <ProjectMaterials>*****9b145c5cafc2e057304fcd*****</ProjectMaterials>
</GetEditingProjectMaterialsResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/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=<ExpireTime>&OSSAccessKeyId=<OSSAccessKeyId>&Signature=<Signature>&security-token=<SecurityToken>",
        "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" : "*****9b145c5cafc2e057304fcd*****"
}

错误码

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。