public static final class RefreshMediaPlayUrlsRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RefreshMediaPlayUrlsRequest |
build() |
RefreshMediaPlayUrlsRequest.Builder |
definitions(String definitions)
Specifies the resolutions of the media streams you want to refresh or prefetch.
|
RefreshMediaPlayUrlsRequest.Builder |
formats(String formats)
The formats of the media streams you want to refresh or prefetch.
|
RefreshMediaPlayUrlsRequest.Builder |
mediaIds(String mediaIds)
The IDs of the media files that you want to refresh or prefetch.
|
RefreshMediaPlayUrlsRequest.Builder |
resultType(String resultType)
Specifies the type of the refresh or prefetch operation.
|
RefreshMediaPlayUrlsRequest.Builder |
sliceCount(Integer sliceCount)
Specifies the number of the playback URLs of the TS files for the M3U8 media stream you want to refresh or prefetch.
|
RefreshMediaPlayUrlsRequest.Builder |
sliceFlag(Boolean sliceFlag)
Specifies whether to refresh or prefetch the playback URLs of the TS files of the M3U8 media stream.
|
RefreshMediaPlayUrlsRequest.Builder |
streamType(String streamType)
Specifies the types of media streams you want to refresh or prefetch.
|
RefreshMediaPlayUrlsRequest.Builder |
taskType(String taskType)
The type of the task that you want to create.
|
RefreshMediaPlayUrlsRequest.Builder |
userData(String userData)
The custom configurations such as callback configurations and upload acceleration configurations.
|
public RefreshMediaPlayUrlsRequest.Builder definitions(String definitions)
> The value must be supported in the **Definition** section in [Parameters for media assets](~~124671~~).
public RefreshMediaPlayUrlsRequest.Builder formats(String formats)
* **mp4** * **m3u8** * **mp3** * **flv** * **webm** * **ts**
public RefreshMediaPlayUrlsRequest.Builder mediaIds(String mediaIds)
* 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 resultType(String resultType)
* **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 sliceCount(Integer sliceCount)
public RefreshMediaPlayUrlsRequest.Builder sliceFlag(Boolean sliceFlag)
* **false** * **true**
public RefreshMediaPlayUrlsRequest.Builder streamType(String streamType)
* **video** * **audio**
public RefreshMediaPlayUrlsRequest.Builder taskType(String taskType)
* **Refresh** * **Preload**
public RefreshMediaPlayUrlsRequest.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~~). - You must submit a ticket to enable the upload acceleration feature. For more information, see [Overview](~~55396~~).
public RefreshMediaPlayUrlsRequest build()
Copyright © 2024. All rights reserved.