Class: TencentCloud::Mps::V20190612::ComposeSubtitleItem

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

Overview

视频编辑/合成任务 字幕元素信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(styleid = nil, text = nil, tracktime = nil) ⇒ ComposeSubtitleItem

Returns a new instance of ComposeSubtitleItem.



6837
6838
6839
6840
6841
# File 'lib/v20190612/models.rb', line 6837

def initialize(styleid=nil, text=nil, tracktime=nil)
  @StyleId = styleid
  @Text = text
  @TrackTime = tracktime
end

Instance Attribute Details

#StyleIdObject

Parameters:

  • 字幕样式,Styles 列表中对应的 Subtitle样式的 ID。

  • 字幕文本。
    注:长文本可能超出画面范围,建议使用 \n 进行换行。

  • 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。



6835
6836
6837
# File 'lib/v20190612/models.rb', line 6835

def StyleId
  @StyleId
end

#TextObject

Parameters:

  • 字幕样式,Styles 列表中对应的 Subtitle样式的 ID。

  • 字幕文本。
    注:长文本可能超出画面范围,建议使用 \n 进行换行。

  • 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。



6835
6836
6837
# File 'lib/v20190612/models.rb', line 6835

def Text
  @Text
end

#TrackTimeObject

Parameters:

  • 字幕样式,Styles 列表中对应的 Subtitle样式的 ID。

  • 字幕文本。
    注:长文本可能超出画面范围,建议使用 \n 进行换行。

  • 元素在轨道时间轴上的时间信息,不填则紧跟上一个元素。



6835
6836
6837
# File 'lib/v20190612/models.rb', line 6835

def TrackTime
  @TrackTime
end

Instance Method Details

#deserialize(params) ⇒ Object



6843
6844
6845
6846
6847
6848
6849
6850
# File 'lib/v20190612/models.rb', line 6843

def deserialize(params)
  @StyleId = params['StyleId']
  @Text = params['Text']
  unless params['TrackTime'].nil?
    @TrackTime = ComposeTrackTime.new
    @TrackTime.deserialize(params['TrackTime'])
  end
end