Class: TencentCloud::Live::V20180801::CasterLayoutInfo

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

Overview

导播台布局参数。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(layoutindex = nil, layouttemplateid = nil, inputindexlist = nil, layoutparams = nil, layoutwidth = nil, layoutheight = nil) ⇒ CasterLayoutInfo

Returns a new instance of CasterLayoutInfo.



1244
1245
1246
1247
1248
1249
1250
1251
# File 'lib/v20180801/models.rb', line 1244

def initialize(layoutindex=nil, layouttemplateid=nil, inputindexlist=nil, layoutparams=nil, layoutwidth=nil, layoutheight=nil)
  @LayoutIndex = layoutindex
  @LayoutTemplateId = layouttemplateid
  @InputIndexList = inputindexlist
  @LayoutParams = layoutparams
  @LayoutWidth = layoutwidth
  @LayoutHeight = layoutheight
end

Instance Attribute Details

#InputIndexListObject

有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。

Parameters:

  • LayoutIndex:

    布局Index。

  • LayoutTemplateId:

    布局模板Id。

  • InputIndexList:

    布局绑定的输入列表。按布局LayerId从小到大,按顺序排列。

  • LayoutParams:

    详细的布局参数列表。

  • LayoutWidth:

    布局输出的宽度,单位为像素。

  • LayoutHeight:

    布局输出的高度,单位为像素。



1242
1243
1244
# File 'lib/v20180801/models.rb', line 1242

def InputIndexList
  @InputIndexList
end

#LayoutHeightObject

有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。

Parameters:

  • LayoutIndex:

    布局Index。

  • LayoutTemplateId:

    布局模板Id。

  • InputIndexList:

    布局绑定的输入列表。按布局LayerId从小到大,按顺序排列。

  • LayoutParams:

    详细的布局参数列表。

  • LayoutWidth:

    布局输出的宽度,单位为像素。

  • LayoutHeight:

    布局输出的高度,单位为像素。



1242
1243
1244
# File 'lib/v20180801/models.rb', line 1242

def LayoutHeight
  @LayoutHeight
end

#LayoutIndexObject

有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。

Parameters:

  • LayoutIndex:

    布局Index。

  • LayoutTemplateId:

    布局模板Id。

  • InputIndexList:

    布局绑定的输入列表。按布局LayerId从小到大,按顺序排列。

  • LayoutParams:

    详细的布局参数列表。

  • LayoutWidth:

    布局输出的宽度,单位为像素。

  • LayoutHeight:

    布局输出的高度,单位为像素。



1242
1243
1244
# File 'lib/v20180801/models.rb', line 1242

def LayoutIndex
  @LayoutIndex
end

#LayoutParamsObject

有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。

Parameters:

  • LayoutIndex:

    布局Index。

  • LayoutTemplateId:

    布局模板Id。

  • InputIndexList:

    布局绑定的输入列表。按布局LayerId从小到大,按顺序排列。

  • LayoutParams:

    详细的布局参数列表。

  • LayoutWidth:

    布局输出的宽度,单位为像素。

  • LayoutHeight:

    布局输出的高度,单位为像素。



1242
1243
1244
# File 'lib/v20180801/models.rb', line 1242

def LayoutParams
  @LayoutParams
end

#LayoutTemplateIdObject

有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。

Parameters:

  • LayoutIndex:

    布局Index。

  • LayoutTemplateId:

    布局模板Id。

  • InputIndexList:

    布局绑定的输入列表。按布局LayerId从小到大,按顺序排列。

  • LayoutParams:

    详细的布局参数列表。

  • LayoutWidth:

    布局输出的宽度,单位为像素。

  • LayoutHeight:

    布局输出的高度,单位为像素。



1242
1243
1244
# File 'lib/v20180801/models.rb', line 1242

def LayoutTemplateId
  @LayoutTemplateId
end

#LayoutWidthObject

有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。

Parameters:

  • LayoutIndex:

    布局Index。

  • LayoutTemplateId:

    布局模板Id。

  • InputIndexList:

    布局绑定的输入列表。按布局LayerId从小到大,按顺序排列。

  • LayoutParams:

    详细的布局参数列表。

  • LayoutWidth:

    布局输出的宽度,单位为像素。

  • LayoutHeight:

    布局输出的高度,单位为像素。



1242
1243
1244
# File 'lib/v20180801/models.rb', line 1242

def LayoutWidth
  @LayoutWidth
end

Instance Method Details

#deserialize(params) ⇒ Object



1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
# File 'lib/v20180801/models.rb', line 1253

def deserialize(params)
  @LayoutIndex = params['LayoutIndex']
  @LayoutTemplateId = params['LayoutTemplateId']
  @InputIndexList = params['InputIndexList']
  unless params['LayoutParams'].nil?
    @LayoutParams = []
    params['LayoutParams'].each do |i|
      casterlayoutparam_tmp = CasterLayoutParam.new
      casterlayoutparam_tmp.deserialize(i)
      @LayoutParams << casterlayoutparam_tmp
    end
  end
  @LayoutWidth = params['LayoutWidth']
  @LayoutHeight = params['LayoutHeight']
end