Class: TencentCloud::Mps::V20190612::MediaSampleSnapshotItem

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

采样截图信息

Instance Attribute Summary collapse

  • #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

    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

    #DefinitionObject

  • Percent:根据百分比间隔采样。
  • Time:根据时间间隔采样。
  • 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
  • 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
  • Parameters:

    • 采样截图规格 ID,参见采样截图参数模板

    • 采样方式,取值范围:

    • 采样间隔

    • 截图后文件的存储位置。

    • 生成的截图 path 列表。

    • 截图如果被打上了水印,被打水印的模板 ID 列表。

    
    
    21127
    21128
    21129
    # File 'lib/v20190612/models.rb', line 21127
    
    def Definition
      @Definition
    end

    #ImagePathSetObject

  • Percent:根据百分比间隔采样。
  • Time:根据时间间隔采样。
  • 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
  • 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
  • Parameters:

    • 采样截图规格 ID,参见采样截图参数模板

    • 采样方式,取值范围:

    • 采样间隔

    • 截图后文件的存储位置。

    • 生成的截图 path 列表。

    • 截图如果被打上了水印,被打水印的模板 ID 列表。

    
    
    21127
    21128
    21129
    # File 'lib/v20190612/models.rb', line 21127
    
    def ImagePathSet
      @ImagePathSet
    end

    #IntervalObject

  • Percent:根据百分比间隔采样。
  • Time:根据时间间隔采样。
  • 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
  • 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
  • Parameters:

    • 采样截图规格 ID,参见采样截图参数模板

    • 采样方式,取值范围:

    • 采样间隔

    • 截图后文件的存储位置。

    • 生成的截图 path 列表。

    • 截图如果被打上了水印,被打水印的模板 ID 列表。

    
    
    21127
    21128
    21129
    # File 'lib/v20190612/models.rb', line 21127
    
    def Interval
      @Interval
    end

    #SampleTypeObject

  • Percent:根据百分比间隔采样。
  • Time:根据时间间隔采样。
  • 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
  • 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
  • Parameters:

    • 采样截图规格 ID,参见采样截图参数模板

    • 采样方式,取值范围:

    • 采样间隔

    • 截图后文件的存储位置。

    • 生成的截图 path 列表。

    • 截图如果被打上了水印,被打水印的模板 ID 列表。

    
    
    21127
    21128
    21129
    # File 'lib/v20190612/models.rb', line 21127
    
    def SampleType
      @SampleType
    end

    #StorageObject

  • Percent:根据百分比间隔采样。
  • Time:根据时间间隔采样。
  • 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
  • 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
  • Parameters:

    • 采样截图规格 ID,参见采样截图参数模板

    • 采样方式,取值范围:

    • 采样间隔

    • 截图后文件的存储位置。

    • 生成的截图 path 列表。

    • 截图如果被打上了水印,被打水印的模板 ID 列表。

    
    
    21127
    21128
    21129
    # File 'lib/v20190612/models.rb', line 21127
    
    def Storage
      @Storage
    end

    #WaterMarkDefinitionObject

  • Percent:根据百分比间隔采样。
  • Time:根据时间间隔采样。
  • 当 SampleType 为 Percent 时,该值表示多少百分比一张图。
  • 当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。
  • Parameters:

    • 采样截图规格 ID,参见采样截图参数模板

    • 采样方式,取值范围:

    • 采样间隔

    • 截图后文件的存储位置。

    • 生成的截图 path 列表。

    • 截图如果被打上了水印,被打水印的模板 ID 列表。

    
    
    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