public class GetVideoPlayAuthRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
apiVersion
The API version.
|
Long |
authInfoTimeout
The validity period of the playback credential.
|
String |
videoId
The ID of the media file.
|
| 构造器和说明 |
|---|
GetVideoPlayAuthRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GetVideoPlayAuthRequest |
build(Map<String,?> map) |
String |
getApiVersion() |
Long |
getAuthInfoTimeout() |
String |
getVideoId() |
GetVideoPlayAuthRequest |
setApiVersion(String apiVersion) |
GetVideoPlayAuthRequest |
setAuthInfoTimeout(Long authInfoTimeout) |
GetVideoPlayAuthRequest |
setVideoId(String videoId) |
@NameInMap(value="ApiVersion") public String apiVersion
The API version. Set the value to **1.0.0**.
@NameInMap(value="AuthInfoTimeout") public Long authInfoTimeout
The validity period of the playback credential. Unit: **seconds**. You cannot obtain the playback URL of a video by using a credential that has expired. A new credential is required.
* Default value: **100**.
* Valid values: `[100,3000]`.
@NameInMap(value="VideoId") public String videoId
The ID of the media file. You can specify only one ID. You can use one of the following methods to obtain the ID of the file:
* 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 media 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 static GetVideoPlayAuthRequest build(Map<String,?> map) throws Exception
Exceptionpublic GetVideoPlayAuthRequest setApiVersion(String apiVersion)
public String getApiVersion()
public GetVideoPlayAuthRequest setAuthInfoTimeout(Long authInfoTimeout)
public Long getAuthInfoTimeout()
public GetVideoPlayAuthRequest setVideoId(String videoId)
public String getVideoId()
Copyright © 2024. All rights reserved.