public static final class GetPlayInfoRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
GetPlayInfoRequest.Builder |
additionType(String additionType)
The URL of the masked live comment data.
|
GetPlayInfoRequest.Builder |
authTimeout(Long authTimeout)
The validity period of the playback URL.
|
GetPlayInfoRequest |
build() |
GetPlayInfoRequest.Builder |
definition(String definition)
The quality of the video stream.
|
GetPlayInfoRequest.Builder |
digitalWatermarkType(String digitalWatermarkType)
The type of the digital watermark.
|
GetPlayInfoRequest.Builder |
formats(String formats)
The format of the media stream.
|
GetPlayInfoRequest.Builder |
outputType(String outputType)
The type of the output URL.
|
GetPlayInfoRequest.Builder |
playConfig(String playConfig)
The custom playback configuration.
|
GetPlayInfoRequest.Builder |
reAuthInfo(String reAuthInfo)
The CDN reauthentication configuration.
|
GetPlayInfoRequest.Builder |
resultType(String resultType)
The type of the data to return.
|
GetPlayInfoRequest.Builder |
streamType(String streamType)
The type of the media stream.
|
GetPlayInfoRequest.Builder |
trace(String trace)
The custom digital watermark.
|
GetPlayInfoRequest.Builder |
videoId(String videoId)
The ID of the media file.
|
public GetPlayInfoRequest.Builder additionType(String additionType)
> This parameter takes effect only when the outputType parameter is set to **cdn**.
public GetPlayInfoRequest.Builder authTimeout(Long authTimeout)
* If you set OutputType to **cdn**: * The playback URL has a validity period only if URL signing is enabled. Otherwise, the playback URL is permanently valid. For more information about how to enable and configure URL signing, see [URL signing](~~86090~~). * Minimum value: **1**. * Maximum value: unlimited. * Default value: The default validity period that is specified in URL signing is used. * If you set OutputType to **oss**: * This parameter takes effect only when the ACL of the Object Storage Service (OSS) bucket is private. Otherwise, the playback URL does not expire. * Minimum value: **1**. * Maximum value: If the media file is stored in the VOD bucket, the maximum validity period is **2592000** (30 days). If the media file is stored in an OSS bucket, the maximum validity period is **129600** (36 hours). This limit is imposed to reduce security risks of the origin server. If you require a longer validity period, set OutputType to **cdn** and configure URL signing to specify a longer validity period. * Default value: **3600**.
public GetPlayInfoRequest.Builder definition(String definition)
* **FD**: low definition * **LD**: standard definition * **SD**: high definition * **HD**: ultra-high definition * **OD**: original definition * **2K**: 2K * **4K**: 4K * **SQ**: standard sound quality * **HQ**: high sound quality * **AUTO**: adaptive bitrate > By default, ApsaraVideo VOD returns video streams in all preceding qualities. However, video streams for adaptive bitrate streaming are returned only if the PackageSetting parameter is specified in the transcoding template. For more information, see the [PackageSetting parameter in the TranscodeTemplate](~~52839~~) table.
public GetPlayInfoRequest.Builder digitalWatermarkType(String digitalWatermarkType)
* TraceMark: tracing watermark * CopyrightMark: copyright watermark
public GetPlayInfoRequest.Builder formats(String formats)
* **mp4** * **m3u8** * **mp3** * **mpd** > By default, ApsaraVideo VOD returns video streams in all the preceding formats. However, video streams in the MPD format are returned only if the MPD container format is specified in the transcoding template. For more information, see the [Container parameter in the TranscodeTemplate](~~52839~~) table.
public GetPlayInfoRequest.Builder outputType(String outputType)
* **oss** * **cdn**
public GetPlayInfoRequest.Builder playConfig(String playConfig)
> * If you do not set the PlayConfig parameter or the `PlayDomain` parameter that is nested under the PlayConfig parameter, the default domain name specified in ApsaraVideo VOD is used in this operation. If no default domain name is specified, the domain names are queried in reverse chronological order based on the time when the domain names were last modified. To prevent domain name issues, we recommend that you perform the following steps to specify the default playback domain name: Log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com). In the left-side navigation pane, choose **Configuration Management** > **Media Management** > **Storage**. Find the domain name that you want to configure and click **Manage** in the Actions column. On the page that appears, set the default playback domain name in the **Origin Domain Name** section. >* If you set the `EncryptType` parameter nested under the PlayConfig parameter to `AliyunVoDEncryption`, the playback URLs of videos encrypted by using Alibaba Cloud proprietary cryptography are not automatically returned to ensure video security. To return playback URLs of videos encrypted by using Alibaba Cloud proprietary cryptography, you must set the `ResultType` parameter to `Multiple`.
public GetPlayInfoRequest.Builder reAuthInfo(String reAuthInfo)
public GetPlayInfoRequest.Builder resultType(String resultType)
* **Single**: Only one latest transcoded stream is returned for each quality and format. * **Multiple**: All transcoded streams are returned for each quality and format.
public GetPlayInfoRequest.Builder streamType(String streamType)
* **video** * **audio** By default, video and audio streams are returned.
public GetPlayInfoRequest.Builder trace(String trace)
* If you set `DigitalWatermarkType` to `TraceMark`, specify this parameter to configure the video tracing watermark and return the video stream that contains the watermark. The value can be up to 1,024 characters in length and can contain letters and digits. * If you set `DigitalWatermarkType` to `CopyrightMark`, specify the **watermark text** that you created for the watermark template for this parameter.`` You can specify this parameter to query and return the video stream that contains the specified watermark text.
public GetPlayInfoRequest.Builder videoId(String videoId)
* 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, you can 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 the VideoId parameter from the response to the [CreateUploadVideo](~~55407~~) operation. * Obtain the value of the VideoId parameter from the response to the [SearchMedia](~~86044~~) operation. This method is applicable to files that have been uploaded.
public GetPlayInfoRequest build()
Copyright © 2024. All rights reserved.