Skip to content

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.

AppIdOptional

AppId interface{}
  • Type: interface{}

Property appId: The application ID.

Default value: app-1000000.


EntityIdOptional

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.


FileInfoOptional

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.


MediaMetaDataOptional

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.


PostProcessConfigOptional

PostProcessConfig interface{}
  • Type: interface{}

Property postProcessConfig: Type = video || audio There is a post-upload processing action.

ProcessType Value: Workflow.


UploadTargetConfigOptional

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.


UserDataOptional

UserData interface{}
  • Type: interface{}

Property userData: The user data.

The value must be a JSON string. You can configure settings such as message callbacks.