UploadMediaProps
Properties for defining a UploadMedia
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ice-uploadmedia
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkice"
&alicloudroscdkice.UploadMediaProps {
AppId: interface{},
EntityId: interface{},
FileInfo: interface{},
MediaMetaData: interface{},
PostProcessConfig: interface{},
UploadTargetConfig: interface{},
UserData: interface{},
}
Properties
Name | Type | Description |
---|---|---|
AppId |
interface{} |
Property appId: The application ID. |
EntityId |
interface{} |
Property entityId: The entity ID. |
FileInfo |
interface{} |
Property fileInfo: The file information, which is in the JSON format and contains the following fields: Type: required. |
MediaMetaData |
interface{} |
Property mediaMetaData: The metadata of the media asset, which is a JSON string that contains the following fields: Title: required. |
PostProcessConfig |
interface{} |
Property postProcessConfig: Type = video || audio There is a post-upload processing action. |
UploadTargetConfig |
interface{} |
Property uploadTargetConfig: The destination storage address. |
UserData |
interface{} |
Property userData: The user data. |
AppId
Optional
AppId interface{}
- Type: interface{}
Property appId: The application ID.
Default value: app-1000000.
EntityId
Optional
EntityId interface{}
- Type: interface{}
Property entityId: The entity ID.
You can call the CreateEntity operation to create an entity and specify a dynamic metadata structure.
FileInfo
Optional
FileInfo interface{}
- Type: interface{}
Property fileInfo: The file information, which is in the JSON format and contains the following fields: Type: required.
The file type. Valid values: video, image, audio, text, and other. Name: required. The file name without the extension. Size: optional. The file size. Ext: required. The file name extension.
MediaMetaData
Optional
MediaMetaData interface{}
- Type: interface{}
Property mediaMetaData: The metadata of the media asset, which is a JSON string that contains the following fields: Title: required.
The value can be up to 128 characters in length. The value must be encoded in UTF-8. Description: optional. The value can be up to 1,024 characters in length. The value must be encoded in UTF-8. CateId: optional. Tags: optional. BusinessType: required. Valid values: opening or ending if Type is set to video default or cover if Type is set to image subtitles or font if Type is set to text watermark if Type is set to material general CoverURL: optional. DynamicMetaData: The value is a string.
PostProcessConfig
Optional
PostProcessConfig interface{}
- Type: interface{}
Property postProcessConfig: Type = video || audio There is a post-upload processing action.
ProcessType Value: Workflow.
UploadTargetConfig
Optional
UploadTargetConfig interface{}
- Type: interface{}
Property uploadTargetConfig: The destination storage address.
Set StorageType to oss. Set StorageLocation to an address in ApsaraVideo VOD. You cannot set this field to an OSS URL.
UserData
Optional
UserData interface{}
- Type: interface{}
Property userData: The user data.
The value must be a JSON string. You can configure settings such as message callbacks.