Class: TencentCloud::Vm::V20210922::MediaInfo

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

Overview

媒体类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MediaInfo.



1049
1050
1051
1052
1053
1054
1055
# File 'lib/v20210922/models.rb', line 1049

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

Instance Attribute Details

#CodecsObject

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

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素

  • Thumbnail:

    封面



1047
1048
1049
# File 'lib/v20210922/models.rb', line 1047

def Codecs
  @Codecs
end

#DurationObject

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

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素

  • Thumbnail:

    封面



1047
1048
1049
# File 'lib/v20210922/models.rb', line 1047

def Duration
  @Duration
end

#HeightObject

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

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素

  • Thumbnail:

    封面



1047
1048
1049
# File 'lib/v20210922/models.rb', line 1047

def Height
  @Height
end

#ThumbnailObject

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

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素

  • Thumbnail:

    封面



1047
1048
1049
# File 'lib/v20210922/models.rb', line 1047

def Thumbnail
  @Thumbnail
end

#WidthObject

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

Parameters:

  • Codecs:

    编码格式

  • Duration:

    流检测时分片时长

  • Width:

    宽,单位为像素

  • Height:

    高,单位为像素

  • Thumbnail:

    封面



1047
1048
1049
# File 'lib/v20210922/models.rb', line 1047

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



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

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