Class: Kaltura::KalturaMediaInfo

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#audio_bit_rateObject

The audio bit rate



5847
5848
5849
# File 'lib/kaltura_types.rb', line 5847

def audio_bit_rate
  @audio_bit_rate
end

#audio_bit_rate_modeObject

The audio bit rate mode



5849
5850
5851
# File 'lib/kaltura_types.rb', line 5849

def audio_bit_rate_mode
  @audio_bit_rate_mode
end

#audio_channelsObject

The number of audio channels



5851
5852
5853
# File 'lib/kaltura_types.rb', line 5851

def audio_channels
  @audio_channels
end

#audio_codec_idObject

The audio codec id



5843
5844
5845
# File 'lib/kaltura_types.rb', line 5843

def audio_codec_id
  @audio_codec_id
end

#audio_durationObject

The audio duration



5845
5846
5847
# File 'lib/kaltura_types.rb', line 5845

def audio_duration
  @audio_duration
end

#audio_formatObject

The audio format



5841
5842
5843
# File 'lib/kaltura_types.rb', line 5841

def audio_format
  @audio_format
end

#audio_resolutionObject

The audio resolution



5855
5856
5857
# File 'lib/kaltura_types.rb', line 5855

def audio_resolution
  @audio_resolution
end

#audio_sampling_rateObject

The audio sampling rate



5853
5854
5855
# File 'lib/kaltura_types.rb', line 5853

def audio_sampling_rate
  @audio_sampling_rate
end

#bits_depthObject

Returns the value of attribute bits_depth.



5873
5874
5875
# File 'lib/kaltura_types.rb', line 5873

def bits_depth
  @bits_depth
end

#chroma_subsamplingObject

Returns the value of attribute chroma_subsampling.



5872
5873
5874
# File 'lib/kaltura_types.rb', line 5872

def chroma_subsampling
  @chroma_subsampling
end

#color_primariesObject

Returns the value of attribute color_primaries.



5869
5870
5871
# File 'lib/kaltura_types.rb', line 5869

def color_primaries
  @color_primaries
end

#color_spaceObject

Returns the value of attribute color_space.



5871
5872
5873
# File 'lib/kaltura_types.rb', line 5871

def color_space
  @color_space
end

#color_transferObject

Returns the value of attribute color_transfer.



5868
5869
5870
# File 'lib/kaltura_types.rb', line 5868

def color_transfer
  @color_transfer
end

#complexity_valueObject

Returns the value of attribute complexity_value.



5865
5866
5867
# File 'lib/kaltura_types.rb', line 5865

def complexity_value
  @complexity_value
end

#container_bit_rateObject

The container bit rate



5820
5821
5822
# File 'lib/kaltura_types.rb', line 5820

def container_bit_rate
  @container_bit_rate
end

#container_durationObject

The container duration



5818
5819
5820
# File 'lib/kaltura_types.rb', line 5818

def container_duration
  @container_duration
end

#container_formatObject

The container format



5812
5813
5814
# File 'lib/kaltura_types.rb', line 5812

def container_format
  @container_format
end

#container_idObject

The container id



5814
5815
5816
# File 'lib/kaltura_types.rb', line 5814

def container_id
  @container_id
end

#container_profileObject

The container profile



5816
5817
5818
# File 'lib/kaltura_types.rb', line 5816

def container_profile
  @container_profile
end

#content_streamsObject

Returns the value of attribute content_streams.



5864
5865
5866
# File 'lib/kaltura_types.rb', line 5864

def content_streams
  @content_streams
end

#file_sizeObject

The file size



5810
5811
5812
# File 'lib/kaltura_types.rb', line 5810

def file_size
  @file_size
end

#flavor_asset_idObject

The id of the related flavor asset



5808
5809
5810
# File 'lib/kaltura_types.rb', line 5808

def flavor_asset_id
  @flavor_asset_id
end

#idObject

The id of the media info



5806
5807
5808
# File 'lib/kaltura_types.rb', line 5806

def id
  @id
end

#is_fast_startObject

Returns the value of attribute is_fast_start.



5863
5864
5865
# File 'lib/kaltura_types.rb', line 5863

def is_fast_start
  @is_fast_start
end

#matrix_coefficientsObject

Returns the value of attribute matrix_coefficients.



5867
5868
5869
# File 'lib/kaltura_types.rb', line 5867

def matrix_coefficients
  @matrix_coefficients
end

#max_gopObject

Returns the value of attribute max_gop.



5866
5867
5868
# File 'lib/kaltura_types.rb', line 5866

def max_gop
  @max_gop
end

#multi_streamObject

Returns the value of attribute multi_stream.



5862
5863
5864
# File 'lib/kaltura_types.rb', line 5862

def multi_stream
  @multi_stream
end

#multi_stream_infoObject

Returns the value of attribute multi_stream_info.



5860
5861
5862
# File 'lib/kaltura_types.rb', line 5860

def multi_stream_info
  @multi_stream_info
end

#pixel_formatObject

Returns the value of attribute pixel_format.



5870
5871
5872
# File 'lib/kaltura_types.rb', line 5870

def pixel_format
  @pixel_format
end

#raw_dataObject

The data as returned by the mediainfo command line



5859
5860
5861
# File 'lib/kaltura_types.rb', line 5859

def raw_data
  @raw_data
end

#scan_typeObject

Returns the value of attribute scan_type.



5861
5862
5863
# File 'lib/kaltura_types.rb', line 5861

def scan_type
  @scan_type
end

#video_bit_rateObject

The video bit rate



5828
5829
5830
# File 'lib/kaltura_types.rb', line 5828

def video_bit_rate
  @video_bit_rate
end

#video_bit_rate_modeObject

The video bit rate mode



5830
5831
5832
# File 'lib/kaltura_types.rb', line 5830

def video_bit_rate_mode
  @video_bit_rate_mode
end

#video_codec_idObject

The video codec id



5824
5825
5826
# File 'lib/kaltura_types.rb', line 5824

def video_codec_id
  @video_codec_id
end

#video_darObject

The video display aspect ratio (dar)



5838
5839
5840
# File 'lib/kaltura_types.rb', line 5838

def video_dar
  @video_dar
end

#video_durationObject

The video duration



5826
5827
5828
# File 'lib/kaltura_types.rb', line 5826

def video_duration
  @video_duration
end

#video_formatObject

The video format



5822
5823
5824
# File 'lib/kaltura_types.rb', line 5822

def video_format
  @video_format
end

#video_frame_rateObject

The video frame rate



5836
5837
5838
# File 'lib/kaltura_types.rb', line 5836

def video_frame_rate
  @video_frame_rate
end

#video_heightObject

The video height



5834
5835
5836
# File 'lib/kaltura_types.rb', line 5834

def video_height
  @video_height
end

#video_rotationObject

Returns the value of attribute video_rotation.



5839
5840
5841
# File 'lib/kaltura_types.rb', line 5839

def video_rotation
  @video_rotation
end

#video_widthObject

The video width



5832
5833
5834
# File 'lib/kaltura_types.rb', line 5832

def video_width
  @video_width
end

#writing_libObject

The writing library



5857
5858
5859
# File 'lib/kaltura_types.rb', line 5857

def writing_lib
  @writing_lib
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
# File 'lib/kaltura_types.rb', line 5945

def from_xml(xml_element)
  super
  if xml_element.elements['id'] != nil
    self.id = xml_element.elements['id'].text
  end
  if xml_element.elements['flavorAssetId'] != nil
    self.flavor_asset_id = xml_element.elements['flavorAssetId'].text
  end
  if xml_element.elements['fileSize'] != nil
    self.file_size = xml_element.elements['fileSize'].text
  end
  if xml_element.elements['containerFormat'] != nil
    self.container_format = xml_element.elements['containerFormat'].text
  end
  if xml_element.elements['containerId'] != nil
    self.container_id = xml_element.elements['containerId'].text
  end
  if xml_element.elements['containerProfile'] != nil
    self.container_profile = xml_element.elements['containerProfile'].text
  end
  if xml_element.elements['containerDuration'] != nil
    self.container_duration = xml_element.elements['containerDuration'].text
  end
  if xml_element.elements['containerBitRate'] != nil
    self.container_bit_rate = xml_element.elements['containerBitRate'].text
  end
  if xml_element.elements['videoFormat'] != nil
    self.video_format = xml_element.elements['videoFormat'].text
  end
  if xml_element.elements['videoCodecId'] != nil
    self.video_codec_id = xml_element.elements['videoCodecId'].text
  end
  if xml_element.elements['videoDuration'] != nil
    self.video_duration = xml_element.elements['videoDuration'].text
  end
  if xml_element.elements['videoBitRate'] != nil
    self.video_bit_rate = xml_element.elements['videoBitRate'].text
  end
  if xml_element.elements['videoBitRateMode'] != nil
    self.video_bit_rate_mode = xml_element.elements['videoBitRateMode'].text
  end
  if xml_element.elements['videoWidth'] != nil
    self.video_width = xml_element.elements['videoWidth'].text
  end
  if xml_element.elements['videoHeight'] != nil
    self.video_height = xml_element.elements['videoHeight'].text
  end
  if xml_element.elements['videoFrameRate'] != nil
    self.video_frame_rate = xml_element.elements['videoFrameRate'].text
  end
  if xml_element.elements['videoDar'] != nil
    self.video_dar = xml_element.elements['videoDar'].text
  end
  if xml_element.elements['videoRotation'] != nil
    self.video_rotation = xml_element.elements['videoRotation'].text
  end
  if xml_element.elements['audioFormat'] != nil
    self.audio_format = xml_element.elements['audioFormat'].text
  end
  if xml_element.elements['audioCodecId'] != nil
    self.audio_codec_id = xml_element.elements['audioCodecId'].text
  end
  if xml_element.elements['audioDuration'] != nil
    self.audio_duration = xml_element.elements['audioDuration'].text
  end
  if xml_element.elements['audioBitRate'] != nil
    self.audio_bit_rate = xml_element.elements['audioBitRate'].text
  end
  if xml_element.elements['audioBitRateMode'] != nil
    self.audio_bit_rate_mode = xml_element.elements['audioBitRateMode'].text
  end
  if xml_element.elements['audioChannels'] != nil
    self.audio_channels = xml_element.elements['audioChannels'].text
  end
  if xml_element.elements['audioSamplingRate'] != nil
    self.audio_sampling_rate = xml_element.elements['audioSamplingRate'].text
  end
  if xml_element.elements['audioResolution'] != nil
    self.audio_resolution = xml_element.elements['audioResolution'].text
  end
  if xml_element.elements['writingLib'] != nil
    self.writing_lib = xml_element.elements['writingLib'].text
  end
  if xml_element.elements['rawData'] != nil
    self.raw_data = xml_element.elements['rawData'].text
  end
  if xml_element.elements['multiStreamInfo'] != nil
    self.multi_stream_info = xml_element.elements['multiStreamInfo'].text
  end
  if xml_element.elements['scanType'] != nil
    self.scan_type = xml_element.elements['scanType'].text
  end
  if xml_element.elements['multiStream'] != nil
    self.multi_stream = xml_element.elements['multiStream'].text
  end
  if xml_element.elements['isFastStart'] != nil
    self.is_fast_start = xml_element.elements['isFastStart'].text
  end
  if xml_element.elements['contentStreams'] != nil
    self.content_streams = xml_element.elements['contentStreams'].text
  end
  if xml_element.elements['complexityValue'] != nil
    self.complexity_value = xml_element.elements['complexityValue'].text
  end
  if xml_element.elements['maxGOP'] != nil
    self.max_gop = xml_element.elements['maxGOP'].text
  end
  if xml_element.elements['matrixCoefficients'] != nil
    self.matrix_coefficients = xml_element.elements['matrixCoefficients'].text
  end
  if xml_element.elements['colorTransfer'] != nil
    self.color_transfer = xml_element.elements['colorTransfer'].text
  end
  if xml_element.elements['colorPrimaries'] != nil
    self.color_primaries = xml_element.elements['colorPrimaries'].text
  end
  if xml_element.elements['pixelFormat'] != nil
    self.pixel_format = xml_element.elements['pixelFormat'].text
  end
  if xml_element.elements['colorSpace'] != nil
    self.color_space = xml_element.elements['colorSpace'].text
  end
  if xml_element.elements['chromaSubsampling'] != nil
    self.chroma_subsampling = xml_element.elements['chromaSubsampling'].text
  end
  if xml_element.elements['bitsDepth'] != nil
    self.bits_depth = xml_element.elements['bitsDepth'].text
  end
end