Class: TencentCloud::Cme::V20191029::MediaMetaData
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cme::V20191029::MediaMetaData
- Defined in:
- lib/v20191029/models.rb
Overview
文件元信息。
Instance Attribute Summary collapse
- #AudioStreamInfoSet ⇒ Object
- #Bitrate ⇒ Object
- #Container ⇒ Object
- #Duration ⇒ Object
- #Height ⇒ Object
- #Rotate ⇒ Object
- #Size ⇒ Object
- #VideoStreamInfoSet ⇒ Object
- #Width ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(size = nil, container = nil, bitrate = nil, height = nil, width = nil, duration = nil, rotate = nil, videostreaminfoset = nil, audiostreaminfoset = nil) ⇒ MediaMetaData
constructor
A new instance of MediaMetaData.
Constructor Details
#initialize(size = nil, container = nil, bitrate = nil, height = nil, width = nil, duration = nil, rotate = nil, videostreaminfoset = nil, audiostreaminfoset = nil) ⇒ MediaMetaData
Returns a new instance of MediaMetaData.
4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 |
# File 'lib/v20191029/models.rb', line 4299 def initialize(size=nil, container=nil, bitrate=nil, height=nil, width=nil, duration=nil, rotate=nil, videostreaminfoset=nil, audiostreaminfoset=nil) @Size = size @Container = container @Bitrate = bitrate @Height = height @Width = width @Duration = duration @Rotate = rotate @VideoStreamInfoSet = videostreaminfoset @AudioStreamInfoSet = audiostreaminfoset end |
Instance Attribute Details
#AudioStreamInfoSet ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def AudioStreamInfoSet @AudioStreamInfoSet end |
#Bitrate ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def Bitrate @Bitrate end |
#Container ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def Container @Container end |
#Duration ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def Duration @Duration end |
#Height ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def Height @Height end |
#Rotate ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def Rotate @Rotate end |
#Size ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def Size @Size end |
#VideoStreamInfoSet ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def VideoStreamInfoSet @VideoStreamInfoSet end |
#Width ⇒ Object
4297 4298 4299 |
# File 'lib/v20191029/models.rb', line 4297 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 |
# File 'lib/v20191029/models.rb', line 4311 def deserialize(params) @Size = params['Size'] @Container = params['Container'] @Bitrate = params['Bitrate'] @Height = params['Height'] @Width = params['Width'] @Duration = params['Duration'] @Rotate = params['Rotate'] unless params['VideoStreamInfoSet'].nil? @VideoStreamInfoSet = [] params['VideoStreamInfoSet'].each do |i| videostreaminfo_tmp = VideoStreamInfo.new videostreaminfo_tmp.deserialize(i) @VideoStreamInfoSet << videostreaminfo_tmp end end unless params['AudioStreamInfoSet'].nil? @AudioStreamInfoSet = [] params['AudioStreamInfoSet'].each do |i| audiostreaminfo_tmp = AudioStreamInfo.new audiostreaminfo_tmp.deserialize(i) @AudioStreamInfoSet << audiostreaminfo_tmp end end end |