Class: TencentCloud::Mps::V20190612::CreateLiveRecordTemplateRequest

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

Overview

CreateLiveRecordTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hlsconfigure = nil, mp4configure = nil, name = nil, comment = nil, recordtype = nil) ⇒ CreateLiveRecordTemplateRequest

Returns a new instance of CreateLiveRecordTemplateRequest.



8572
8573
8574
8575
8576
8577
8578
# File 'lib/v20190612/models.rb', line 8572

def initialize(hlsconfigure=nil, mp4configure=nil, name=nil, comment=nil, recordtype=nil)
  @HLSConfigure = hlsconfigure
  @MP4Configure = mp4configure
  @Name = name
  @Comment = comment
  @RecordType = recordtype
end

Instance Attribute Details

#CommentObject

Parameters:

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。不填时默认值为video。



8570
8571
8572
# File 'lib/v20190612/models.rb', line 8570

def Comment
  @Comment
end

#HLSConfigureObject

Parameters:

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。不填时默认值为video。



8570
8571
8572
# File 'lib/v20190612/models.rb', line 8570

def HLSConfigure
  @HLSConfigure
end

#MP4ConfigureObject

Parameters:

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。不填时默认值为video。



8570
8571
8572
# File 'lib/v20190612/models.rb', line 8570

def MP4Configure
  @MP4Configure
end

#NameObject

Parameters:

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。不填时默认值为video。



8570
8571
8572
# File 'lib/v20190612/models.rb', line 8570

def Name
  @Name
end

#RecordTypeObject

Parameters:

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。不填时默认值为video。



8570
8571
8572
# File 'lib/v20190612/models.rb', line 8570

def RecordType
  @RecordType
end

Instance Method Details

#deserialize(params) ⇒ Object



8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
# File 'lib/v20190612/models.rb', line 8580

def deserialize(params)
  unless params['HLSConfigure'].nil?
    @HLSConfigure = HLSConfigureInfo.new
    @HLSConfigure.deserialize(params['HLSConfigure'])
  end
  unless params['MP4Configure'].nil?
    @MP4Configure = MP4ConfigureInfo.new
    @MP4Configure.deserialize(params['MP4Configure'])
  end
  @Name = params['Name']
  @Comment = params['Comment']
  @RecordType = params['RecordType']
end