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.



6776
6777
6778
6779
6780
# File 'lib/v20190612/models.rb', line 6776

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

Instance Attribute Details

#StyleIdObject

Parameters:

  • StyleId:

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

  • Text:

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

  • TrackTime:

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



6774
6775
6776
# File 'lib/v20190612/models.rb', line 6774

def StyleId
  @StyleId
end

#TextObject

Parameters:

  • StyleId:

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

  • Text:

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

  • TrackTime:

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



6774
6775
6776
# File 'lib/v20190612/models.rb', line 6774

def Text
  @Text
end

#TrackTimeObject

Parameters:

  • StyleId:

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

  • Text:

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

  • TrackTime:

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



6774
6775
6776
# File 'lib/v20190612/models.rb', line 6774

def TrackTime
  @TrackTime
end

Instance Method Details

#deserialize(params) ⇒ Object



6782
6783
6784
6785
6786
6787
6788
6789
# File 'lib/v20190612/models.rb', line 6782

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