Class: TencentCloud::Cme::V20191029::VideoStreamInfo

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(bitrate = nil, height = nil, width = nil, codec = nil, fps = nil) ⇒ VideoStreamInfo

Returns a new instance of VideoStreamInfo.



6696
6697
6698
6699
6700
6701
6702
# File 'lib/v20191029/models.rb', line 6696

def initialize(bitrate=nil, height=nil, width=nil, codec=nil, fps=nil)
  @Bitrate = bitrate
  @Height = height
  @Width = width
  @Codec = codec
  @Fps = fps
end

Instance Attribute Details

#BitrateObject

Parameters:

  • Bitrate:

    码率,单位:bps。

  • Height:

    高度,单位:px。

  • Width:

    宽度,单位:px。

  • Codec:

    编码格式。

  • Fps:

    帧率,单位:hz。



6694
6695
6696
# File 'lib/v20191029/models.rb', line 6694

def Bitrate
  @Bitrate
end

#CodecObject

Parameters:

  • Bitrate:

    码率,单位:bps。

  • Height:

    高度,单位:px。

  • Width:

    宽度,单位:px。

  • Codec:

    编码格式。

  • Fps:

    帧率,单位:hz。



6694
6695
6696
# File 'lib/v20191029/models.rb', line 6694

def Codec
  @Codec
end

#FpsObject

Parameters:

  • Bitrate:

    码率,单位:bps。

  • Height:

    高度,单位:px。

  • Width:

    宽度,单位:px。

  • Codec:

    编码格式。

  • Fps:

    帧率,单位:hz。



6694
6695
6696
# File 'lib/v20191029/models.rb', line 6694

def Fps
  @Fps
end

#HeightObject

Parameters:

  • Bitrate:

    码率,单位:bps。

  • Height:

    高度,单位:px。

  • Width:

    宽度,单位:px。

  • Codec:

    编码格式。

  • Fps:

    帧率,单位:hz。



6694
6695
6696
# File 'lib/v20191029/models.rb', line 6694

def Height
  @Height
end

#WidthObject

Parameters:

  • Bitrate:

    码率,单位:bps。

  • Height:

    高度,单位:px。

  • Width:

    宽度,单位:px。

  • Codec:

    编码格式。

  • Fps:

    帧率,单位:hz。



6694
6695
6696
# File 'lib/v20191029/models.rb', line 6694

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



6704
6705
6706
6707
6708
6709
6710
# File 'lib/v20191029/models.rb', line 6704

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