public static final class RefreshMediaPlayUrlsRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RefreshMediaPlayUrlsRequest |
build() |
RefreshMediaPlayUrlsRequest.Builder |
definitions(String definitions)
Specifies the type of the refresh or prefetch operation.
|
RefreshMediaPlayUrlsRequest.Builder |
formats(String formats)
Specifies the types of media streams you want to refresh or prefetch.
|
RefreshMediaPlayUrlsRequest.Builder |
mediaIds(String mediaIds)
Specifies whether to refresh or prefetch the playback URLs of the TS files of the M3U8 media stream.
|
RefreshMediaPlayUrlsRequest.Builder |
resultType(String resultType)
The IDs of the media files that you want to refresh or prefetch.
|
RefreshMediaPlayUrlsRequest.Builder |
sliceCount(Integer sliceCount)
The IDs of the media files that cannot be operated on.
|
RefreshMediaPlayUrlsRequest.Builder |
sliceFlag(Boolean sliceFlag)
The ID of the refresh or prefetch task.
|
RefreshMediaPlayUrlsRequest.Builder |
streamType(String streamType)
The custom configurations such as callback configurations and upload acceleration configurations.
|
RefreshMediaPlayUrlsRequest.Builder |
taskType(String taskType)
The IDs of the media files that do not exist.
|
RefreshMediaPlayUrlsRequest.Builder |
userData(String userData)
Specifies the resolutions of the media streams you want to refresh or prefetch.
|
public RefreshMediaPlayUrlsRequest.Builder definitions(String definitions)
* **Single**: Only one latest transcoded stream is refreshed or prefetched for each resolution and format. * **Multiple**: All transcoded streams are refreshed or prefetched for each resolution and format.
public RefreshMediaPlayUrlsRequest.Builder formats(String formats)
* **video** * **audio**
public RefreshMediaPlayUrlsRequest.Builder mediaIds(String mediaIds)
* **false** * **true**
public RefreshMediaPlayUrlsRequest.Builder resultType(String resultType)
* Log on to the [ApsaraVideo VOD](https://vod.console.aliyun.com) console. In the left-side navigation pane, choose **Media Files** > **Audio/Video**. On the Video and Audio page, view the ID of the audio or video file. This method is applicable to files that are uploaded by using the ApsaraVideo VOD console. * Obtain the value of VideoId from the response to the [CreateUploadVideo](~~55407~~) operation that you call to upload media files. * Obtain the value of VideoId from the response to the [SearchMedia](~~86044~~) operation that you call to query the media ID after the media file is uploaded.
public RefreshMediaPlayUrlsRequest.Builder sliceCount(Integer sliceCount)
public RefreshMediaPlayUrlsRequest.Builder sliceFlag(Boolean sliceFlag)
public RefreshMediaPlayUrlsRequest.Builder streamType(String streamType)
> - 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~~). - You must submit a ticket to enable the upload acceleration feature. For more information, see [Overview](~~55396~~).
public RefreshMediaPlayUrlsRequest.Builder taskType(String taskType)
public RefreshMediaPlayUrlsRequest.Builder userData(String userData)
> The value must be supported in the **Definition** section in [Parameters for media assets](~~124671~~).
public RefreshMediaPlayUrlsRequest build()
Copyright © 2023. All rights reserved.