public class MediaSampleSnapshotItem extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| MediaSampleSnapshotItem() | 
| MediaSampleSnapshotItem(MediaSampleSnapshotItem source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Long | getDefinition()Get 采样截图规格 ID,参见[采样截图参数模板](https://cloud.tencent.com/document/product/266/33480#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 | 
| String[] | getImagePathSet()Get 生成的截图 path 列表。 | 
| Long | getInterval()Get 采样间隔
当 SampleType 为 Percent 时,该值表示多少百分比一张图。
当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。 | 
| String | getSampleType()Get 采样方式,取值范围:
Percent:根据百分比间隔采样。
Time:根据时间间隔采样。 | 
| TaskOutputStorage | getStorage()Get 截图后文件的存储位置。 | 
| Long[] | getWaterMarkDefinition()Get 截图如果被打上了水印,被打水印的模板 ID 列表。 | 
| void | setDefinition(Long Definition)Set 采样截图规格 ID,参见[采样截图参数模板](https://cloud.tencent.com/document/product/266/33480#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 | 
| void | setImagePathSet(String[] ImagePathSet)Set 生成的截图 path 列表。 | 
| void | setInterval(Long Interval)Set 采样间隔
当 SampleType 为 Percent 时,该值表示多少百分比一张图。
当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。 | 
| void | setSampleType(String SampleType)Set 采样方式,取值范围:
Percent:根据百分比间隔采样。
Time:根据时间间隔采样。 | 
| void | setStorage(TaskOutputStorage Storage)Set 截图后文件的存储位置。 | 
| void | setWaterMarkDefinition(Long[] WaterMarkDefinition)Set 截图如果被打上了水印,被打水印的模板 ID 列表。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic MediaSampleSnapshotItem()
public MediaSampleSnapshotItem(MediaSampleSnapshotItem source)
public Long getDefinition()
public void setDefinition(Long Definition)
Definition - 采样截图规格 ID,参见[采样截图参数模板](https://cloud.tencent.com/document/product/266/33480#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF)。public String getSampleType()
public void setSampleType(String SampleType)
SampleType - 采样方式,取值范围:
public Long getInterval()
public void setInterval(Long Interval)
Interval - 采样间隔
public TaskOutputStorage getStorage()
public void setStorage(TaskOutputStorage Storage)
Storage - 截图后文件的存储位置。public String[] getImagePathSet()
public void setImagePathSet(String[] ImagePathSet)
ImagePathSet - 生成的截图 path 列表。public Long[] getWaterMarkDefinition()
public void setWaterMarkDefinition(Long[] WaterMarkDefinition)
WaterMarkDefinition - 截图如果被打上了水印,被打水印的模板 ID 列表。Copyright © 2025. All rights reserved.