All Products
Search
Document Center

Intelligent Media Services:GetEditingProjectMaterials

Last Updated:Dec 16, 2024

Queries all materials associated with an online editing project.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:GetEditingProjectMaterials
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdstringYes

The ID of the online editing project.

*****fb2101cb318*****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

******89-C21D-4B78-AE24-3788B8******
ProjectIdstring

The project ID.

*****67ae06542b9b93e0d1c387*****
MediaInfosarray<object>

The media assets that meet the specified conditions.

MediaInfoobject
MediaIdstring

The ID of the media asset.

*****64623a94eca8516569c8fe*****
MediaBasicInfoobject

The basic information of the media asset.

MediaIdstring

The ID of the media asset.

*****64623a94eca8516569c8f*****
InputURLstring

The URL of the media asset in another service.

http://bucket.oss-cn-shanghai.aliyuncs.com/file.mp4
MediaTypestring

The type of the media asset.

video
BusinessTypestring

The business type of the media asset.

general
Sourcestring

The source of the media asset.

oss
Titlestring

The title of the media asset.

file.mp4
Descriptionstring

The description of the media asset.

sample_description
Categorystring

The category of the media asset.

video
MediaTagsstring

The tags of the media asset.

CoverURLstring

The thumbnail URL of the media asset.

http://sample-bucket.oss-cn-shanghai.aliyuncs.com/sample-corver.jpg?Expires=1628670610&OSSAccessKeyId=AK&Signature=signature
UserDatastring

The user data.

userData
Snapshotsstring

The snapshots of the media asset.

null
Statusstring

The status of the media asset.

Normal
TranscodeStatusstring

The transcoding status of the media asset.

Valid values:

  • TranscodeSuccess: transcoding completed.
  • TranscodeFailed: transcoding failed.
  • Init: initializing.
  • Transcoding: transcoding in progress.
Init
CreateTimestring

The time when the media asset was created.

2020-12-26T04:11:08Z
ModifiedTimestring

The time when the media asset was last modified.

2020-12-26T04:11:08Z
DeletedTimestring

The time when the media asset was deleted.

2020-12-26T04:11:08Z
SpriteImagesstring

The sprite of the media asset

null
FileInfoListarray<object>

The information about the file.

FileInfoobject
FileBasicInfoobject

The basic information of the file, such as the duration and size.

FileNamestring

The file name.

example.mp4
FileStatusstring

The file status.

Normal
FileTypestring

The file type.

source_file
FileSizestring

The file size. Unit: bytes.

30611502
FileUrlstring

The Object Storage Service (OSS) URL of the file.

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

The region in which the file resides.

cn-shanghai
FormatNamestring

The container format.

mov,mp4,m4a,3gp,3g2,mj2
Durationstring

The duration.

216.206667
Bitratestring

The bitrate.

1132.68
Widthstring

The width.

960
Heightstring

The height.

540
LiveMaterialsarray<object>

The materials associated with the live stream.

LiveStreamConfigobject
AppNamestring

The application name of the live stream.

testrecord
StreamNamestring

The name of the live stream.

testrecord
DomainNamestring

The domain name of the live stream.

test.alivecdn.com
LiveUrlstring

The URL of the live stream.

rtmp://test.alivecdn.com/testrecord/teststream
ProjectMaterialsarray

The materials associated with the editing project. A live stream editing project will be associated with a regular editing project after the live streaming ends.

projectMaterialstring

The ID of the regular editing project associated with the live stream editing project.

*****c38767ae06542b9b93e0d1*****

Examples

Sample success responses

JSONformat

{
  "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": "",
        "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": [
    "*****c38767ae06542b9b93e0d1*****"
  ]
}

Error codes

HTTP status codeError codeError message
400InvalidParameterThe specified parameter \ is not valid.
404ProjectNotFoundThe specified project not found

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-04-07The Error code has changed. The response structure of the API has changedView Change Details