Class: TencentCloud::Mps::V20190612::ComposeMediaTrack

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

Overview

视频编辑/合成任务 轨道信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, items = nil) ⇒ ComposeMediaTrack

Returns a new instance of ComposeMediaTrack.



6748
6749
6750
6751
# File 'lib/v20190612/models.rb', line 6748

def initialize(type=nil, items=nil)
  @Type = type
  @Items = items
end

Instance Attribute Details

#ItemsObject

Parameters:

  • Type:

    轨道类型,取值有:

    • Video :视频轨道。视频轨道可由以下元素组成:
      • Video 元素
      • Image 元素
      • Transition 元素
      • Empty 元素
    • Audio :音频轨道。音频轨道可由以下元素组成:
      • Audio 元素
      • Transition 元素
      • Empty 元素
    • Title:文字轨道。文字轨道可由以下元素组成:
      • Subtitle 元素

  • Items:

    轨道上的元素列表。



6746
6747
6748
# File 'lib/v20190612/models.rb', line 6746

def Items
  @Items
end

#TypeObject

Parameters:

  • Type:

    轨道类型,取值有:

    • Video :视频轨道。视频轨道可由以下元素组成:
      • Video 元素
      • Image 元素
      • Transition 元素
      • Empty 元素
    • Audio :音频轨道。音频轨道可由以下元素组成:
      • Audio 元素
      • Transition 元素
      • Empty 元素
    • Title:文字轨道。文字轨道可由以下元素组成:
      • Subtitle 元素

  • Items:

    轨道上的元素列表。



6746
6747
6748
# File 'lib/v20190612/models.rb', line 6746

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
# File 'lib/v20190612/models.rb', line 6753

def deserialize(params)
  @Type = params['Type']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      composemediaitem_tmp = ComposeMediaItem.new
      composemediaitem_tmp.deserialize(i)
      @Items << composemediaitem_tmp
    end
  end
end