Class: TencentCloud::Mps::V20190612::MediaSampleSnapshotItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::MediaSampleSnapshotItem
- Defined in:
- lib/v20190612/models.rb
Overview
采样截图信息
Instance Attribute Summary collapse
-
#Definition ⇒ Object
- Percent:根据百分比间隔采样。
- Time:根据时间间隔采样。
- 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
- 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
. -
#ImagePathSet ⇒ Object
- Percent:根据百分比间隔采样。
- Time:根据时间间隔采样。
- 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
- 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
. -
#Interval ⇒ Object
- Percent:根据百分比间隔采样。
- Time:根据时间间隔采样。
- 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
- 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
. -
#SampleType ⇒ Object
- Percent:根据百分比间隔采样。
- Time:根据时间间隔采样。
- 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
- 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
. -
#Storage ⇒ Object
- Percent:根据百分比间隔采样。
- Time:根据时间间隔采样。
- 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
- 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
. -
#WaterMarkDefinition ⇒ Object
- Percent:根据百分比间隔采样。
- Time:根据时间间隔采样。
- 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
- 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(definition = nil, sampletype = nil, interval = nil, storage = nil, imagepathset = nil, watermarkdefinition = nil) ⇒ MediaSampleSnapshotItem
constructor
A new instance of MediaSampleSnapshotItem.
Constructor Details
#initialize(definition = nil, sampletype = nil, interval = nil, storage = nil, imagepathset = nil, watermarkdefinition = nil) ⇒ MediaSampleSnapshotItem
Returns a new instance of MediaSampleSnapshotItem.
21129 21130 21131 21132 21133 21134 21135 21136 |
# File 'lib/v20190612/models.rb', line 21129 def initialize(definition=nil, sampletype=nil, interval=nil, storage=nil, imagepathset=nil, watermarkdefinition=nil) @Definition = definition @SampleType = sampletype @Interval = interval @Storage = storage @ImagePathSet = imagepathset @WaterMarkDefinition = watermarkdefinition end |
Instance Attribute Details
#Definition ⇒ Object
21127 21128 21129 |
# File 'lib/v20190612/models.rb', line 21127 def Definition @Definition end |
#ImagePathSet ⇒ Object
21127 21128 21129 |
# File 'lib/v20190612/models.rb', line 21127 def ImagePathSet @ImagePathSet end |
#Interval ⇒ Object
21127 21128 21129 |
# File 'lib/v20190612/models.rb', line 21127 def Interval @Interval end |
#SampleType ⇒ Object
21127 21128 21129 |
# File 'lib/v20190612/models.rb', line 21127 def SampleType @SampleType end |
#Storage ⇒ Object
21127 21128 21129 |
# File 'lib/v20190612/models.rb', line 21127 def Storage @Storage end |
#WaterMarkDefinition ⇒ Object
21127 21128 21129 |
# File 'lib/v20190612/models.rb', line 21127 def WaterMarkDefinition @WaterMarkDefinition end |
Instance Method Details
#deserialize(params) ⇒ Object
21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 |
# File 'lib/v20190612/models.rb', line 21138 def deserialize(params) @Definition = params['Definition'] @SampleType = params['SampleType'] @Interval = params['Interval'] unless params['Storage'].nil? @Storage = TaskOutputStorage.new @Storage.deserialize(params['Storage']) end @ImagePathSet = params['ImagePathSet'] @WaterMarkDefinition = params['WaterMarkDefinition'] end |