Class: TencentCloud::Vm::V20200709::MediaInfo

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

Overview

媒体类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(codecs = nil, duration = nil, width = nil, height = nil) ⇒ MediaInfo

Returns a new instance of MediaInfo.



1057
1058
1059
1060
1061
1062
# File 'lib/v20200709/models.rb', line 1057

def initialize(codecs=nil, duration=nil, width=nil, height=nil)
  @Codecs = codecs
  @Duration = duration
  @Width = width
  @Height = height
end

Instance Attribute Details

#CodecsObject

注意:此字段可能返回 0,表示取不到有效值。

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素



1055
1056
1057
# File 'lib/v20200709/models.rb', line 1055

def Codecs
  @Codecs
end

#DurationObject

注意:此字段可能返回 0,表示取不到有效值。

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素



1055
1056
1057
# File 'lib/v20200709/models.rb', line 1055

def Duration
  @Duration
end

#HeightObject

注意:此字段可能返回 0,表示取不到有效值。

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素



1055
1056
1057
# File 'lib/v20200709/models.rb', line 1055

def Height
  @Height
end

#WidthObject

注意:此字段可能返回 0,表示取不到有效值。

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素



1055
1056
1057
# File 'lib/v20200709/models.rb', line 1055

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



1064
1065
1066
1067
1068
1069
# File 'lib/v20200709/models.rb', line 1064

def deserialize(params)
  @Codecs = params['Codecs']
  @Duration = params['Duration']
  @Width = params['Width']
  @Height = params['Height']
end