Class: TencentCloud::Vod::V20180717::VideoConfigureInfo

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

Overview

即时转码视频模板配置。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width = nil, height = nil, resolutionadaptive = nil, bitrate = nil) ⇒ VideoConfigureInfo

Returns a new instance of VideoConfigureInfo.



29047
29048
29049
29050
29051
29052
# File 'lib/v20180717/models.rb', line 29047

def initialize(width=nil, height=nil, resolutionadaptive=nil, bitrate=nil)
  @Width = width
  @Height = height
  @ResolutionAdaptive = resolutionadaptive
  @Bitrate = bitrate
end

Instance Attribute Details

#BitrateObject

默认值:open。当取值为 0,表示由云点播自动设置码率。

Parameters:

  • Bitrate:

    视频流的码率,取值范围:0 和 [128, 10000],单位:kbps。



29045
29046
29047
# File 'lib/v20180717/models.rb', line 29045

def Bitrate
  @Bitrate
end

#HeightObject

默认值:open。当取值为 0,表示由云点播自动设置码率。

Parameters:

  • Bitrate:

    视频流的码率,取值范围:0 和 [128, 10000],单位:kbps。



29045
29046
29047
# File 'lib/v20180717/models.rb', line 29045

def Height
  @Height
end

#ResolutionAdaptiveObject

默认值:open。当取值为 0,表示由云点播自动设置码率。

Parameters:

  • Bitrate:

    视频流的码率,取值范围:0 和 [128, 10000],单位:kbps。



29045
29046
29047
# File 'lib/v20180717/models.rb', line 29045

def ResolutionAdaptive
  @ResolutionAdaptive
end

#WidthObject

默认值:open。当取值为 0,表示由云点播自动设置码率。

Parameters:

  • Bitrate:

    视频流的码率,取值范围:0 和 [128, 10000],单位:kbps。



29045
29046
29047
# File 'lib/v20180717/models.rb', line 29045

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



29054
29055
29056
29057
29058
29059
# File 'lib/v20180717/models.rb', line 29054

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