Class: TencentCloud::Vod::V20180717::SplitMediaTaskConfig

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

Overview

视频拆条任务配置信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(starttimeoffset = nil, endtimeoffset = nil, procedurename = nil, outputconfig = nil) ⇒ SplitMediaTaskConfig

Returns a new instance of SplitMediaTaskConfig.



27183
27184
27185
27186
27187
27188
# File 'lib/v20180717/models.rb', line 27183

def initialize(starttimeoffset=nil, endtimeoffset=nil, procedurename=nil, outputconfig=nil)
  @StartTimeOffset = starttimeoffset
  @EndTimeOffset = endtimeoffset
  @ProcedureName = procedurename
  @OutputConfig = outputconfig
end

Instance Attribute Details

#EndTimeOffsetObject

<li>不填或填0,表示转码后的视频从原始视频的起始位置开始;</li> <li>当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。</li> <li>不填或填0,表示转码后的视频持续到原始视频的末尾终止;</li> <li>当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li>

Parameters:

  • StartTimeOffset:

    视频拆条起始的偏移时间,单位:秒。

  • EndTimeOffset:

    视频拆条结束的偏移时间,单位:秒。

  • ProcedureName: (任务流)

    (cloud.tencent.com/document/product/266/33475#.E4.BB.BB.E5.8A.A1.E6.B5.81)名称。要对生成的新视频自动执行任务流时填写。

  • OutputConfig:

    视频拆条输出信息。



27181
27182
27183
# File 'lib/v20180717/models.rb', line 27181

def EndTimeOffset
  @EndTimeOffset
end

#OutputConfigObject

<li>不填或填0,表示转码后的视频从原始视频的起始位置开始;</li> <li>当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。</li> <li>不填或填0,表示转码后的视频持续到原始视频的末尾终止;</li> <li>当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li>

Parameters:

  • StartTimeOffset:

    视频拆条起始的偏移时间,单位:秒。

  • EndTimeOffset:

    视频拆条结束的偏移时间,单位:秒。

  • ProcedureName: (任务流)

    (cloud.tencent.com/document/product/266/33475#.E4.BB.BB.E5.8A.A1.E6.B5.81)名称。要对生成的新视频自动执行任务流时填写。

  • OutputConfig:

    视频拆条输出信息。



27181
27182
27183
# File 'lib/v20180717/models.rb', line 27181

def OutputConfig
  @OutputConfig
end

#ProcedureNameObject

<li>不填或填0,表示转码后的视频从原始视频的起始位置开始;</li> <li>当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。</li> <li>不填或填0,表示转码后的视频持续到原始视频的末尾终止;</li> <li>当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li>

Parameters:

  • StartTimeOffset:

    视频拆条起始的偏移时间,单位:秒。

  • EndTimeOffset:

    视频拆条结束的偏移时间,单位:秒。

  • ProcedureName: (任务流)

    (cloud.tencent.com/document/product/266/33475#.E4.BB.BB.E5.8A.A1.E6.B5.81)名称。要对生成的新视频自动执行任务流时填写。

  • OutputConfig:

    视频拆条输出信息。



27181
27182
27183
# File 'lib/v20180717/models.rb', line 27181

def ProcedureName
  @ProcedureName
end

#StartTimeOffsetObject

<li>不填或填0,表示转码后的视频从原始视频的起始位置开始;</li> <li>当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。</li> <li>不填或填0,表示转码后的视频持续到原始视频的末尾终止;</li> <li>当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;</li> <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li>

Parameters:

  • StartTimeOffset:

    视频拆条起始的偏移时间,单位:秒。

  • EndTimeOffset:

    视频拆条结束的偏移时间,单位:秒。

  • ProcedureName: (任务流)

    (cloud.tencent.com/document/product/266/33475#.E4.BB.BB.E5.8A.A1.E6.B5.81)名称。要对生成的新视频自动执行任务流时填写。

  • OutputConfig:

    视频拆条输出信息。



27181
27182
27183
# File 'lib/v20180717/models.rb', line 27181

def StartTimeOffset
  @StartTimeOffset
end

Instance Method Details

#deserialize(params) ⇒ Object



27190
27191
27192
27193
27194
27195
27196
27197
27198
# File 'lib/v20180717/models.rb', line 27190

def deserialize(params)
  @StartTimeOffset = params['StartTimeOffset']
  @EndTimeOffset = params['EndTimeOffset']
  @ProcedureName = params['ProcedureName']
  unless params['OutputConfig'].nil?
    @OutputConfig = SplitMediaOutputConfig.new
    @OutputConfig.deserialize(params['OutputConfig'])
  end
end