Class: TencentCloud::Live::V20180801::CasterLayoutInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Live::V20180801::CasterLayoutInfo
- Defined in:
- lib/v20180801/models.rb
Overview
导播台布局参数。
Instance Attribute Summary collapse
-
#InputIndexList ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。 已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。 默认为1280像素。 注:该值仅在画中画布局,且未设置PgmWidth时生效。 注:该参数仅在画中画布局,且未设置PgmHeight时生效。.
-
#LayoutHeight ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。 已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。 默认为1280像素。 注:该值仅在画中画布局,且未设置PgmWidth时生效。 注:该参数仅在画中画布局,且未设置PgmHeight时生效。.
-
#LayoutIndex ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。 已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。 默认为1280像素。 注:该值仅在画中画布局,且未设置PgmWidth时生效。 注:该参数仅在画中画布局,且未设置PgmHeight时生效。.
-
#LayoutParams ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。 已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。 默认为1280像素。 注:该值仅在画中画布局,且未设置PgmWidth时生效。 注:该参数仅在画中画布局,且未设置PgmHeight时生效。.
-
#LayoutTemplateId ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。 已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。 默认为1280像素。 注:该值仅在画中画布局,且未设置PgmWidth时生效。 注:该参数仅在画中画布局,且未设置PgmHeight时生效。.
-
#LayoutWidth ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。 已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。 默认为1280像素。 注:该值仅在画中画布局,且未设置PgmWidth时生效。 注:该参数仅在画中画布局,且未设置PgmHeight时生效。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(layoutindex = nil, layouttemplateid = nil, inputindexlist = nil, layoutparams = nil, layoutwidth = nil, layoutheight = nil) ⇒ CasterLayoutInfo
constructor
A new instance of CasterLayoutInfo.
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
#InputIndexList ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。
1242 1243 1244 |
# File 'lib/v20180801/models.rb', line 1242 def InputIndexList @InputIndexList end |
#LayoutHeight ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。
1242 1243 1244 |
# File 'lib/v20180801/models.rb', line 1242 def LayoutHeight @LayoutHeight end |
#LayoutIndex ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。
1242 1243 1244 |
# File 'lib/v20180801/models.rb', line 1242 def LayoutIndex @LayoutIndex end |
#LayoutParams ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。
1242 1243 1244 |
# File 'lib/v20180801/models.rb', line 1242 def LayoutParams @LayoutParams end |
#LayoutTemplateId ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。
1242 1243 1244 |
# File 'lib/v20180801/models.rb', line 1242 def LayoutTemplateId @LayoutTemplateId end |
#LayoutWidth ⇒ Object
有效值 当使用布局模版时,无需LayoutParams参数,导播台将使用模版布局参数。已有两个画面的布局为例,输入1对应LayerId为1,输入2对应的LayerId为2,该字段应该填入“1|2”。默认为1280像素。注:该值仅在画中画布局,且未设置PgmWidth时生效。注:该参数仅在画中画布局,且未设置PgmHeight时生效。
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 |