Class: TencentCloud::Cme::V20191029::MediaCastVideoSetting

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

Overview

点播转直播视频配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width = nil, height = nil, bitrate = nil, framerate = nil) ⇒ MediaCastVideoSetting

Returns a new instance of MediaCastVideoSetting.



4229
4230
4231
4232
4233
4234
# File 'lib/v20191029/models.rb', line 4229

def initialize(width=nil, height=nil, bitrate=nil, framerate=nil)
  @Width = width
  @Height = height
  @Bitrate = bitrate
  @FrameRate = framerate
end

Instance Attribute Details

#BitrateObject

Parameters:

  • Width:

    视频宽度,单位:px,默认值为1280。

  • Height:

    视频高度,单位:px,默认值为720。支持的视频分辨率最大为1920*1080。

  • Bitrate:

    视频码率,单位:kbps,默认值为2500。最大值为10000 kbps。

  • FrameRate:

    视频帧率,单位:Hz,默认值为25。最大值为60。



4227
4228
4229
# File 'lib/v20191029/models.rb', line 4227

def Bitrate
  @Bitrate
end

#FrameRateObject

Parameters:

  • Width:

    视频宽度,单位:px,默认值为1280。

  • Height:

    视频高度,单位:px,默认值为720。支持的视频分辨率最大为1920*1080。

  • Bitrate:

    视频码率,单位:kbps,默认值为2500。最大值为10000 kbps。

  • FrameRate:

    视频帧率,单位:Hz,默认值为25。最大值为60。



4227
4228
4229
# File 'lib/v20191029/models.rb', line 4227

def FrameRate
  @FrameRate
end

#HeightObject

Parameters:

  • Width:

    视频宽度,单位:px,默认值为1280。

  • Height:

    视频高度,单位:px,默认值为720。支持的视频分辨率最大为1920*1080。

  • Bitrate:

    视频码率,单位:kbps,默认值为2500。最大值为10000 kbps。

  • FrameRate:

    视频帧率,单位:Hz,默认值为25。最大值为60。



4227
4228
4229
# File 'lib/v20191029/models.rb', line 4227

def Height
  @Height
end

#WidthObject

Parameters:

  • Width:

    视频宽度,单位:px,默认值为1280。

  • Height:

    视频高度,单位:px,默认值为720。支持的视频分辨率最大为1920*1080。

  • Bitrate:

    视频码率,单位:kbps,默认值为2500。最大值为10000 kbps。

  • FrameRate:

    视频帧率,单位:Hz,默认值为25。最大值为60。



4227
4228
4229
# File 'lib/v20191029/models.rb', line 4227

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



4236
4237
4238
4239
4240
4241
# File 'lib/v20191029/models.rb', line 4236

def deserialize(params)
  @Width = params['Width']
  @Height = params['Height']
  @Bitrate = params['Bitrate']
  @FrameRate = params['FrameRate']
end