MediaInfoProps
Properties for defining a MediaInfo
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ice-mediainfo
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkice"
&alicloudroscdkice.MediaInfoProps {
InputUrl: interface{},
BusinessType: interface{},
CateId: interface{},
CoverUrl: interface{},
Description: interface{},
MediaTags: interface{},
MediaType: interface{},
Overwrite: interface{},
ReferenceId: interface{},
RegisterConfig: interface{},
SmartTagTemplateId: interface{},
Title: interface{},
UserData: interface{},
WorkflowId: interface{},
}
Properties
Name | Type | Description |
---|---|---|
InputUrl |
interface{} |
Property inputUrl: The URL of the media asset in another service. |
BusinessType |
interface{} |
Property businessType: The business type of the media asset. |
CateId |
interface{} |
Property cateId: The category ID. |
CoverUrl |
interface{} |
Property coverUrl: The thumbnail URL of the media asset. |
Description |
interface{} |
Property description: The description of the media asset. |
MediaTags |
interface{} |
Property mediaTags: The tags of the media asset. |
MediaType |
interface{} |
Property mediaType: The type of the media asset. |
Overwrite |
interface{} |
Property overwrite: Specifies whether to overwrite the media asset that has been registered by using the same URL. |
ReferenceId |
interface{} |
Property referenceId: The custom ID. |
RegisterConfig |
interface{} |
Property registerConfig: The registration configurations. |
SmartTagTemplateId |
interface{} |
Property smartTagTemplateId: The ID of the smart tagging template. |
Title |
interface{} |
Property title: The title. |
UserData |
interface{} |
Property userData: The user data. |
WorkflowId |
interface{} |
Property workflowId: The workflow ID. |
InputUrl
Required
InputUrl interface{}
- Type: interface{}
Property inputUrl: 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*
BusinessType
Optional
BusinessType interface{}
- Type: interface{}
Property businessType: The business type of the media asset.
Valid values: subtitles watermark opening ending general
CateId
Optional
CateId interface{}
- Type: interface{}
Property cateId: The category ID.
CoverUrl
Optional
CoverUrl interface{}
- Type: interface{}
Property coverUrl: The thumbnail URL of the media asset.
The value can be up to 128 bytes in length. The value must be encoded in UTF-8.
Description
Optional
Description interface{}
- Type: interface{}
Property description: The description of the media asset.
The value can be up to 1,024 bytes in length. The value must be encoded in UTF-8.
MediaTags
Optional
MediaTags interface{}
- Type: interface{}
Property mediaTags: The tags of the media asset.
Up to 16 tags are supported. Separate multiple tags with commas (,). Each tag can be up to 32 bytes in length. The value must be encoded in UTF-8.
MediaType
Optional
MediaType interface{}
- Type: interface{}
Property mediaType: The type of the media asset.
Valid values: image video audio text We recommend that you specify this parameter based on your business requirements. If you set InputURL to an OSS URL, the media asset type can be automatically determined based on the file name extension. For more information .
Overwrite
Optional
Overwrite interface{}
- Type: interface{}
Property overwrite: Specifies whether to overwrite the media asset that has been registered by using the same URL.
Default value: false. Valid values:
- true: If a media asset has been registered by using the same URL, the original media asset is deleted and the new media asset is registered.
- false: If a media asset has been registered by using the same URL, the new media asset is not registered. A URL cannot be used to register multiple media assets.
ReferenceId
Optional
ReferenceId interface{}
- Type: interface{}
Property referenceId: The custom ID.
The ID can be 6 to 64 characters in length and can contain only letters, digits, hyphens (-), and underscores (_). Make sure that the ID is unique among users.
RegisterConfig
Optional
RegisterConfig interface{}
- Type: interface{}
Property registerConfig: The registration configurations.
By default, a sprite is generated for the media asset. You can set NeedSprite to false to disable automatic sprite generation. By default, a snapshot is generated for the media asset. You can set NeedSnapshot to false to disable automatic snapshot generation.
SmartTagTemplateId
Optional
SmartTagTemplateId interface{}
- Type: interface{}
Property smartTagTemplateId: The ID of the smart tagging template.
Valid values: S00000101-300080: the system template that supports natural language processing (NLP) for content recognition. S00000103-000001: the system template that supports NLP for content recognition and all tagging capabilities. S00000103-000002: the system template that supports all tagging capabilities but does not support NLP for content recognition. After you configure this parameter, a smart tag analysis task is automatically initiated after the media asset is registered. For more information about the billable items.
Title
Optional
Title interface{}
- Type: interface{}
Property title: The title.
If you do not specify this parameter, a default title is automatically generated based on the date. The value can be up to 128 bytes in length. The value must be encoded in UTF-8.
UserData
Optional
UserData interface{}
- Type: interface{}
Property userData: The user data.
You can specify a custom callback URL.
WorkflowId
Optional
WorkflowId interface{}
- Type: interface{}
Property workflowId: The workflow ID.