ALIYUN::ICE::MediaInfo is used to register a media asset in Intelligent Media Services (IMS).
Syntax
{
"Type": "ALIYUN::ICE::MediaInfo",
"Properties": {
"InputURL": String,
"BusinessType": String,
"CateId": Integer,
"CoverURL": String,
"Description": String,
"MediaType": String,
"MediaTags": List,
"Overwrite": Boolean,
"RegisterConfig": String,
"ReferenceId": String,
"SmartTagTemplateId": String,
"Title": String,
"UserData": Map,
"WorkflowId": String
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
InputURL | String | Yes | No | The URL of the media asset in another service. | The URL is associated with the ID of the media asset in IMS. The URL cannot be modified once the media asset is registered. The following types of URLs are supported:
|
BusinessType | String | No | No | The business type of the media asset. | Valid values:
|
CateId | Integer | No | Yes | The ID of the category. | None. |
CoverURL | String | No | Yes | The thumbnail URL. |
|
Description | String | No | Yes | The description of the media asset. |
|
MediaType | String | No | No | The type of the media asset. | Valid values:
|
MediaTags | List | No | Yes | The tags. |
|
Overwrite | Boolean | No | No | Specifies whether to overwrite the media asset that has been registered by using the URL specified by InputURL. |
|
RegisterConfig | String | No | No | The registration configurations. | By default, a sprite sheet is generated for the media asset. You can set NeedSprite to false to disable automatic sprite sheet generation. By default, a snapshot is generated for the media asset. You can set NeedSnapshot to false to disable automatic snapshot generation. |
ReferenceId | String | No | Yes | The custom ID. | The ID can be 6 to 64 characters in length, and can contain only letters, digits, hyphens (-), and underscores (_). The ID must be unique within an account. |
SmartTagTemplateId | String | No | No | The ID of the smart tagging template. | Valid values:
|
Title | String | No | Yes | The title. | If you do not specify this property, the system generates a title based on the current date.
|
UserData | Map | No | Yes | The user data. | You can configure a custom callback URL. For more information, see Configure callback settings for completed editing jobs.
|
WorkflowId | String | No | No | The ID of the workflow. | None. |
Return values
Fn::GetAtt
MediaId: the ID of the IMS media asset.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InputURL:
Type: String
Description:
en: |-
The URL of the media asset in another service. The URL is associated with the ID of the media asset in IMS. The URL cannot be modified once registered. The following types of URLs are supported:
OSS URL in one of the following formats:
http(s)://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4
oss://example-bucket/example.mp4: In this format, it is considered by default that the region of the OSS bucket in which the media asset resides is the same as the region in which IMS is activated.
URL of an ApsaraVideo VOD media asset
vod://***20b48fb04483915d4f2cd8ac****
Required: true
Resources:
MediaInfo:
Type: ALIYUN::ICE::MediaInfo
Properties:
InputURL:
Ref: InputURL
Outputs:
MediaId:
Description: The ID of the media asset in IMS.
Value:
Fn::GetAtt:
- MediaInfo
- MediaId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InputURL": {
"Type": "String",
"Description": {
"en": "The URL of the media asset in another service. The URL is associated with the ID of the media asset in IMS. The URL cannot be modified once registered. The following types of URLs are supported:\nOSS URL in one of the following formats:\nhttp(s)://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4\noss://example-bucket/example.mp4: In this format, it is considered by default that the region of the OSS bucket in which the media asset resides is the same as the region in which IMS is activated.\nURL of an ApsaraVideo VOD media asset\nvod://***20b48fb04483915d4f2cd8ac****"
},
"Required": true
}
},
"Resources": {
"MediaInfo": {
"Type": "ALIYUN::ICE::MediaInfo",
"Properties": {
"InputURL": {
"Ref": "InputURL"
}
}
}
},
"Outputs": {
"MediaId": {
"Description": "The ID of the media asset in IMS.",
"Value": {
"Fn::GetAtt": [
"MediaInfo",
"MediaId"
]
}
}
}
}