public static final class RegisterMediaRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RegisterMediaRequest |
build() |
RegisterMediaRequest.Builder |
registerMetadatas(String registerMetadatas)
The metadata of the media files.
|
RegisterMediaRequest.Builder |
templateGroupId(String templateGroupId)
The ID of the transcoding template group.
|
RegisterMediaRequest.Builder |
userData(String userData)
The custom settings.
|
RegisterMediaRequest.Builder |
workflowId(String workflowId)
The ID of the workflow.
|
public RegisterMediaRequest.Builder registerMetadatas(String registerMetadatas)
public RegisterMediaRequest.Builder templateGroupId(String templateGroupId)
* Log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com). In the left-side navigation pane, choose **Configuration Management** > **Media Processing** > **Transcoding Template Groups**. On the Transcoding Template Groups page, you can view the ID of the transcoding template group. * Obtain the value of the TranscodeTemplateGroupId parameter from the response to the [AddTranscodeTemplateGroup](~~102665~~) operation that you called to create a transcoding template group. * Obtain the value of the TranscodeTemplateGroupId parameter from the response to the [ListTranscodeTemplateGroup](~~102669~~) operation that you called to query transcoding template groups. > * If you do not need to transcode media files, set the TemplateGroupId parameter to VOD_NO_TRANSCODE. If you do not specify this configuration, errors occur on your files. If you need to transcode media files, specify the ID of the transcoding template group. * If you specify both WorkflowId and TemplateGroupId, the value of the WorkflowId parameter takes effect. For more information, see [Workflows](~~115347~~).
public RegisterMediaRequest.Builder userData(String userData)
> You cannot configure callbacks for this operation. No callback message is returned after the media files are registered even if you configure callback settings for this parameter. If you configure callback settings for the UserData parameter when you create media processing jobs such as transcoding and snapshot capture jobs for the media file, the callback URL that you specified is used. If you do not configure callback settings when you create media processing jobs, the callback URL that you specified for the UserData parameter when you register the media file is used.
public RegisterMediaRequest.Builder workflowId(String workflowId)
> If you specify both WorkflowId and TemplateGroupId, the value of WorkflowId parameter takes effect. For more information, see [Workflows](~~115347~~).
public RegisterMediaRequest build()
Copyright © 2024. All rights reserved.