public static final class SubmitSnapshotJobRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
SubmitSnapshotJobRequest |
build() |
SubmitSnapshotJobRequest.Builder |
count(Long count)
The maximum number of snapshots.
|
SubmitSnapshotJobRequest.Builder |
height(String height)
The height of each snapshot.
|
SubmitSnapshotJobRequest.Builder |
interval(Long interval)
The snapshot interval.
|
SubmitSnapshotJobRequest.Builder |
snapshotTemplateId(String snapshotTemplateId)
The ID of the snapshot template.
|
SubmitSnapshotJobRequest.Builder |
specifiedOffsetTime(Long specifiedOffsetTime)
The point in time when the first snapshot is captured.
|
SubmitSnapshotJobRequest.Builder |
specifiedOffsetTimes(List<Long> specifiedOffsetTimes)
The playback positions at which you want to capture snapshots.
|
SubmitSnapshotJobRequest.Builder |
spriteSnapshotConfig(String spriteSnapshotConfig)
The sprite snapshot configuration.
|
SubmitSnapshotJobRequest.Builder |
userData(String userData)
The custom configurations including the configuration of transparent data transmission and callback configurations.
|
SubmitSnapshotJobRequest.Builder |
videoId(String videoId)
The ID of the video.
|
SubmitSnapshotJobRequest.Builder |
width(String width)
The width of each snapshot.
|
public SubmitSnapshotJobRequest.Builder count(Long count)
public SubmitSnapshotJobRequest.Builder height(String height)
public SubmitSnapshotJobRequest.Builder interval(Long interval)
* Unit: seconds. * Default value: **1**. * If you set this parameter to **0**, snapshots are captured at even intervals based on the video duration divided by the value of the Count parameter.
public SubmitSnapshotJobRequest.Builder snapshotTemplateId(String snapshotTemplateId)
* We recommend that you create a snapshot template before you specify the template ID. For more information about how to create a snapshot template, see [AddVodTemplate](~~99406~~). * If you set the SnapshotTemplateId parameter, all the other request parameters except the Action and VideoId parameters are ignored.
public SubmitSnapshotJobRequest.Builder specifiedOffsetTime(Long specifiedOffsetTime)
* Unit: milliseconds. * Default value: **0**.
public SubmitSnapshotJobRequest.Builder specifiedOffsetTimes(List<Long> specifiedOffsetTimes)
public SubmitSnapshotJobRequest.Builder spriteSnapshotConfig(String spriteSnapshotConfig)
public SubmitSnapshotJobRequest.Builder userData(String userData)
> To use the message callback feature, you must specify an HTTP callback URL and the callback events in the ApsaraVideo VOD console. Otherwise, the callback settings do not take effect.
public SubmitSnapshotJobRequest.Builder videoId(String videoId)
* After you upload a video in the ApsaraVideo VOD console, you can log on to the [ApsaraVideo VOD console](https://vod.console.aliyun.com) and choose **Media Files** > **Audio/Video** to view the ID of the video. * Obtain the video ID from the response to the [CreateUploadVideo](~~55407~~) operation that you called to obtain the upload URL and credential. * Obtain the video ID from the response to the [SearchMedia](~~86044~~) operation that you called to query media information after the audio or video file is uploaded.
public SubmitSnapshotJobRequest.Builder width(String width)
public SubmitSnapshotJobRequest build()
Copyright © 2024. All rights reserved.