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, #size_in_bytes, #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



5005
5006
5007
# File 'lib/kaltura_types.rb', line 5005

def bitrate
  @bitrate
end

#container_formatObject

The container format



5013
5014
5015
# File 'lib/kaltura_types.rb', line 5013

def container_format
  @container_format
end

#flavor_params_idObject

The Flavor Params used to create this Flavor Asset



4999
5000
5001
# File 'lib/kaltura_types.rb', line 4999

def flavor_params_id
  @flavor_params_id
end

#frame_rateObject

The frame rate (in FPS) of the Flavor Asset



5007
5008
5009
# File 'lib/kaltura_types.rb', line 5007

def frame_rate
  @frame_rate
end

#heightObject

The height of the Flavor Asset



5003
5004
5005
# File 'lib/kaltura_types.rb', line 5003

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)



5023
5024
5025
# File 'lib/kaltura_types.rb', line 5023

def is_default
  @is_default
end

#is_originalObject

True if this Flavor Asset is the original source



5009
5010
5011
# File 'lib/kaltura_types.rb', line 5009

def is_original
  @is_original
end

#is_webObject

True if this Flavor Asset is playable in KDP



5011
5012
5013
# File 'lib/kaltura_types.rb', line 5011

def is_web
  @is_web
end

#labelObject

The label of the flavor asset



5021
5022
5023
# File 'lib/kaltura_types.rb', line 5021

def label
  @label
end

#languageObject

The language of the flavor asset



5019
5020
5021
# File 'lib/kaltura_types.rb', line 5019

def language
  @language
end

#statusObject

The status of the Flavor Asset



5017
5018
5019
# File 'lib/kaltura_types.rb', line 5017

def status
  @status
end

#video_codec_idObject

The video codec



5015
5016
5017
# File 'lib/kaltura_types.rb', line 5015

def video_codec_id
  @video_codec_id
end

#widthObject

The width of the Flavor Asset



5001
5002
5003
# File 'lib/kaltura_types.rb', line 5001

def width
  @width
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
# File 'lib/kaltura_types.rb', line 5053

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