public static final class GetPlayInfoResponseBody.PlayInfo.Builder extends Object
构造器和说明 |
---|
Builder() |
public GetPlayInfoResponseBody.PlayInfo.Builder bitDepth(Integer bitDepth)
public GetPlayInfoResponseBody.PlayInfo.Builder bitrate(String bitrate)
* **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 GetPlayInfoResponseBody.PlayInfo.Builder creationTime(String creationTime)
* **Normal** * **Invisible**
public GetPlayInfoResponseBody.PlayInfo.Builder definition(String definition)
public GetPlayInfoResponseBody.PlayInfo.Builder duration(String duration)
* **AliyunVoDEncryption**: Alibaba Cloud proprietary cryptography * **HLSEncryption**: HTTP Live Streaming (HLS) encryption > If the encryption type is**AliyunVoDEncryption**, only ApsaraVideo Player SDK can be used to play videos.
public GetPlayInfoResponseBody.PlayInfo.Builder encrypt(Long encrypt)
public GetPlayInfoResponseBody.PlayInfo.Builder encryptType(String encryptType)
public GetPlayInfoResponseBody.PlayInfo.Builder format(String format)
public GetPlayInfoResponseBody.PlayInfo.Builder fps(String fps)
* **oss** * **cdn**
public GetPlayInfoResponseBody.PlayInfo.Builder HDRType(String HDRType)
public GetPlayInfoResponseBody.PlayInfo.Builder height(Long height)
public GetPlayInfoResponseBody.PlayInfo.Builder jobId(String jobId)
* **video** * **audio**
public GetPlayInfoResponseBody.PlayInfo.Builder modificationTime(String modificationTime)
* If the OutputType parameter is set to **cdn**: * This parameter takes effect only if URL authentication is enabled. Otherwise, the playback URL does not expire. * Minimum value: **1**. * Maximum value: unlimited. * Default value: The default validity period that is specified in URL authentication is used. * If the OutputType parameter is set 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: **2592000** (30 days). This limit is imposed to reduce security risks of the origin server. * Default value: **3600**.
public GetPlayInfoResponseBody.PlayInfo.Builder narrowBandType(String narrowBandType)
* **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 GetPlayInfoResponseBody.PlayInfo.Builder playURL(String playURL)
public GetPlayInfoResponseBody.PlayInfo.Builder size(Long size)
> * If you do not specify PlayConfig or `PlayDomain` in PlayConfig, the default domain name configured in ApsaraVideo VOD is used in this operation. If no default domain name is configured, the domain names are queried in reverse chronological order based on the time when the domain names were modified. The domain name that was last modified is used as the streaming domain name. To prevent domain name issues, we recommend that you specify the default streaming domain name. You can log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com) and choose **Configuration Management** > **Media Management** > **Storage** > **Manage** > **Origin Domain Name** to set the default streaming domain name. * If the `EncryptType` parameter in PlayConfig is set to `AliyunVoDEncryption`, the playback URL of the stream encrypted by using proprietary cryptography is not returned to ensure video security. If you want to return such URL, you must set the `ResultType` parameter to `Multiple`.
public GetPlayInfoResponseBody.PlayInfo.Builder specification(String specification)
public GetPlayInfoResponseBody.PlayInfo.Builder status(String status)
public GetPlayInfoResponseBody.PlayInfo.Builder streamType(String streamType)
public GetPlayInfoResponseBody.PlayInfo.Builder watermarkId(String watermarkId)
* **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 GetPlayInfoResponseBody.PlayInfo.Builder width(Long width)
* **0**: no * **1**: yes
public GetPlayInfoResponseBody.PlayInfo build()
Copyright © 2023. All rights reserved.