public static final class UploadMediaByURLRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
UploadMediaByURLRequest.Builder |
appId(String appId)
The ID of the application.
|
UploadMediaByURLRequest |
build() |
UploadMediaByURLRequest.Builder |
sessionId(String sessionId)
The custom identifier for deduplication.
|
UploadMediaByURLRequest.Builder |
storageLocation(String storageLocation)
The storage address of the media file.
|
UploadMediaByURLRequest.Builder |
templateGroupId(String templateGroupId)
The ID of the transcoding template group.
|
UploadMediaByURLRequest.Builder |
uploadMetadatas(String uploadMetadatas)
The metadata of the media file that you want to upload.
|
UploadMediaByURLRequest.Builder |
uploadURLs(String uploadURLs)
The URL of the media file.
|
UploadMediaByURLRequest.Builder |
userData(String userData)
The custom configurations such as callback configurations and upload acceleration configurations.
|
UploadMediaByURLRequest.Builder |
workflowId(String workflowId)
The ID of the workflow.
|
public UploadMediaByURLRequest.Builder appId(String appId)
public UploadMediaByURLRequest.Builder sessionId(String sessionId)
public UploadMediaByURLRequest.Builder storageLocation(String storageLocation)
To view the storage address, log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com/?spm=a2c4g.11186623.2.15.6948257eaZ4m54#/vod/settings/censored). In the left-side navigation pane, choose **Configuration Management** > **Media Management** > **Storage**. If you do not specify a storage address, the default storage address is used.
public UploadMediaByURLRequest.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, view the ID of the transcoding template group. * Obtain the value of TranscodeTemplateGroupId from the response to the [AddTranscodeTemplateGroup](~~102665~~) operation. * Obtain the value of TranscodeTemplateGroupId from the response to the [ListTranscodeTemplateGroup](~~102669~~) operation. >- If you leave this parameter empty, the default transcoding template group is used for transcoding. If you specify this parameter, the specified transcoding template group is used for transcoding. >- You can also specify the ID of the transcoding template group in `UploadMetadatas`. If you specify this parameter and TemplateGroupId in UploadMetadatas, the TemplateGroupId in UploadMetadatas takes effect.
public UploadMediaByURLRequest.Builder uploadMetadatas(String uploadMetadatas)
* This parameter takes effect only if SourceURL matches the URL that you specified for UploadURLs. * You must convert the JSON-formatted data such as `[UploadMetadata, UploadMetadata,…]` to a JSON string. * For more information, see the **UploadMetadata** table.
public UploadMediaByURLRequest.Builder uploadURLs(String uploadURLs)
* You must include a file name extension in the URL, such as `https://****.mp4`. * If the URL does not contain a file name extension, specify a file name extension for `FileExtension` in `UploadMetadatas`. * If you specify `FileExtension` when the URL contains a file name extension, the file name extension that you specified for `FileExtension` takes effect. * For more information about file name extensions supported by ApsaraVideo VOD, see [Overview](~~55396~~). * URL encoding is required. Separate multiple URLs with commas (,). You can specify a maximum of 20 URLs. * Special characters may cause upload failures. You must encode URLs before you separate them with commas (,).
public UploadMediaByURLRequest.Builder userData(String userData)
>- The callback configurations take effect only after you specify the HTTP callback URL and select specific callback events in the ApsaraVideo VOD console. For more information about how to configure HTTP callback settings in the ApsaraVideo VOD console, see [Configure callback settings](~~86071~~). >- If you want to enable the upload acceleration feature, [submit a request on Yida](https://yida.alibaba-inc.com/o/ticketapply). For more information, see [Overview](~~55396~~).
public UploadMediaByURLRequest.Builder workflowId(String workflowId)
> If you specify WorkflowId and TemplateGroupId, the value of WorkflowId takes effect. For more information, see [Workflows](~~115347~~).
public UploadMediaByURLRequest build()
Copyright © 2024. All rights reserved.