Class: Kaltura::KalturaFlavorAsset

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

Direct Known Subclasses

KalturaLiveAsset, KalturaWidevineFlavorAsset

Instance Attribute Summary collapse

Attributes inherited from KalturaAsset

#actual_source_asset_params_ids, #created_at, #deleted_at, #description, #entry_id, #file_ext, #id, #partner_data, #partner_description, #partner_id, #size, #tags, #updated_at, #version

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#bitrateObject

The overall bitrate (in KBits) of the Flavor Asset



4760
4761
4762
# File 'lib/kaltura_types.rb', line 4760

def bitrate
  @bitrate
end

#container_formatObject

The container format



4768
4769
4770
# File 'lib/kaltura_types.rb', line 4768

def container_format
  @container_format
end

#flavor_params_idObject

The Flavor Params used to create this Flavor Asset



4754
4755
4756
# File 'lib/kaltura_types.rb', line 4754

def flavor_params_id
  @flavor_params_id
end

#frame_rateObject

The frame rate (in FPS) of the Flavor Asset



4762
4763
4764
# File 'lib/kaltura_types.rb', line 4762

def frame_rate
  @frame_rate
end

#heightObject

The height of the Flavor Asset



4758
4759
4760
# File 'lib/kaltura_types.rb', line 4758

def height
  @height
end

#is_defaultObject

Is default flavor asset of the entry (This field will be taken into account selectign which audio flavor will be selected as default)



4778
4779
4780
# File 'lib/kaltura_types.rb', line 4778

def is_default
  @is_default
end

#is_originalObject

True if this Flavor Asset is the original source



4764
4765
4766
# File 'lib/kaltura_types.rb', line 4764

def is_original
  @is_original
end

#is_webObject

True if this Flavor Asset is playable in KDP



4766
4767
4768
# File 'lib/kaltura_types.rb', line 4766

def is_web
  @is_web
end

#labelObject

The label of the flavor asset



4776
4777
4778
# File 'lib/kaltura_types.rb', line 4776

def label
  @label
end

#languageObject

The language of the flavor asset



4774
4775
4776
# File 'lib/kaltura_types.rb', line 4774

def language
  @language
end

#statusObject

The status of the Flavor Asset



4772
4773
4774
# File 'lib/kaltura_types.rb', line 4772

def status
  @status
end

#video_codec_idObject

The video codec



4770
4771
4772
# File 'lib/kaltura_types.rb', line 4770

def video_codec_id
  @video_codec_id
end

#widthObject

The width of the Flavor Asset



4756
4757
4758
# File 'lib/kaltura_types.rb', line 4756

def width
  @width
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
# File 'lib/kaltura_types.rb', line 4808

def from_xml(xml_element)
	super
	if xml_element.elements['flavorParamsId'] != nil
		self.flavor_params_id = xml_element.elements['flavorParamsId'].text
	end
	if xml_element.elements['width'] != nil
		self.width = xml_element.elements['width'].text
	end
	if xml_element.elements['height'] != nil
		self.height = xml_element.elements['height'].text
	end
	if xml_element.elements['bitrate'] != nil
		self.bitrate = xml_element.elements['bitrate'].text
	end
	if xml_element.elements['frameRate'] != nil
		self.frame_rate = xml_element.elements['frameRate'].text
	end
	if xml_element.elements['isOriginal'] != nil
		self.is_original = xml_element.elements['isOriginal'].text
	end
	if xml_element.elements['isWeb'] != nil
		self.is_web = xml_element.elements['isWeb'].text
	end
	if xml_element.elements['containerFormat'] != nil
		self.container_format = xml_element.elements['containerFormat'].text
	end
	if xml_element.elements['videoCodecId'] != nil
		self.video_codec_id = xml_element.elements['videoCodecId'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['language'] != nil
		self.language = xml_element.elements['language'].text
	end
	if xml_element.elements['label'] != nil
		self.label = xml_element.elements['label'].text
	end
	if xml_element.elements['isDefault'] != nil
		self.is_default = xml_element.elements['isDefault'].text
	end
end