Class: Kaltura::KalturaThumbParams

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

Direct Known Subclasses

KalturaThumbParamsOutput

Instance Attribute Summary collapse

Attributes inherited from KalturaAssetParams

#created_at, #description, #id, #is_system_default, #media_parser_type, #name, #partner_id, #remote_storage_profile_ids, #required_permissions, #source_asset_params_ids, #source_remote_storage_profile_id, #system_name, #tags

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#background_colorObject

Hexadecimal value



5901
5902
5903
# File 'lib/kaltura_types.rb', line 5901

def background_color
  @background_color
end

#crop_heightObject

Returns the value of attribute crop_height.



5894
5895
5896
# File 'lib/kaltura_types.rb', line 5894

def crop_height
  @crop_height
end

#crop_typeObject

Returns the value of attribute crop_type.



5889
5890
5891
# File 'lib/kaltura_types.rb', line 5889

def crop_type
  @crop_type
end

#crop_widthObject

Returns the value of attribute crop_width.



5893
5894
5895
# File 'lib/kaltura_types.rb', line 5893

def crop_width
  @crop_width
end

#crop_xObject

Returns the value of attribute crop_x.



5891
5892
5893
# File 'lib/kaltura_types.rb', line 5891

def crop_x
  @crop_x
end

#crop_yObject

Returns the value of attribute crop_y.



5892
5893
5894
# File 'lib/kaltura_types.rb', line 5892

def crop_y
  @crop_y
end

#densityObject

The image density (dpi) for example: 72 or 96



5907
5908
5909
# File 'lib/kaltura_types.rb', line 5907

def density
  @density
end

#formatObject

The container format of the Flavor Params



5905
5906
5907
# File 'lib/kaltura_types.rb', line 5905

def format
  @format
end

#heightObject

Returns the value of attribute height.



5897
5898
5899
# File 'lib/kaltura_types.rb', line 5897

def height
  @height
end

#intervalObject

interval in seconds for creating thumbnail



5913
5914
5915
# File 'lib/kaltura_types.rb', line 5913

def interval
  @interval
end

#qualityObject

Returns the value of attribute quality.



5890
5891
5892
# File 'lib/kaltura_types.rb', line 5890

def quality
  @quality
end

#scale_heightObject

Returns the value of attribute scale_height.



5899
5900
5901
# File 'lib/kaltura_types.rb', line 5899

def scale_height
  @scale_height
end

#scale_widthObject

Returns the value of attribute scale_width.



5898
5899
5900
# File 'lib/kaltura_types.rb', line 5898

def scale_width
  @scale_width
end

#source_params_idObject

Id of the flavor params or the thumbnail params to be used as source for the thumbnail creation



5903
5904
5905
# File 'lib/kaltura_types.rb', line 5903

def source_params_id
  @source_params_id
end

#strip_profilesObject

Strip profiles and comments



5909
5910
5911
# File 'lib/kaltura_types.rb', line 5909

def strip_profiles
  @strip_profiles
end

#video_offsetObject

Returns the value of attribute video_offset.



5895
5896
5897
# File 'lib/kaltura_types.rb', line 5895

def video_offset
  @video_offset
end

#video_offset_in_percentageObject

Create thumbnail from the videoLengthpercentage second



5911
5912
5913
# File 'lib/kaltura_types.rb', line 5911

def video_offset_in_percentage
  @video_offset_in_percentage
end

#widthObject

Returns the value of attribute width.



5896
5897
5898
# File 'lib/kaltura_types.rb', line 5896

def width
  @width
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



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
# File 'lib/kaltura_types.rb', line 5964

def from_xml(xml_element)
	super
	if xml_element.elements['cropType'] != nil
		self.crop_type = xml_element.elements['cropType'].text
	end
	if xml_element.elements['quality'] != nil
		self.quality = xml_element.elements['quality'].text
	end
	if xml_element.elements['cropX'] != nil
		self.crop_x = xml_element.elements['cropX'].text
	end
	if xml_element.elements['cropY'] != nil
		self.crop_y = xml_element.elements['cropY'].text
	end
	if xml_element.elements['cropWidth'] != nil
		self.crop_width = xml_element.elements['cropWidth'].text
	end
	if xml_element.elements['cropHeight'] != nil
		self.crop_height = xml_element.elements['cropHeight'].text
	end
	if xml_element.elements['videoOffset'] != nil
		self.video_offset = xml_element.elements['videoOffset'].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['scaleWidth'] != nil
		self.scale_width = xml_element.elements['scaleWidth'].text
	end
	if xml_element.elements['scaleHeight'] != nil
		self.scale_height = xml_element.elements['scaleHeight'].text
	end
	if xml_element.elements['backgroundColor'] != nil
		self.background_color = xml_element.elements['backgroundColor'].text
	end
	if xml_element.elements['sourceParamsId'] != nil
		self.source_params_id = xml_element.elements['sourceParamsId'].text
	end
	if xml_element.elements['format'] != nil
		self.format = xml_element.elements['format'].text
	end
	if xml_element.elements['density'] != nil
		self.density = xml_element.elements['density'].text
	end
	if xml_element.elements['stripProfiles'] != nil
		self.strip_profiles = xml_element.elements['stripProfiles'].text
	end
	if xml_element.elements['videoOffsetInPercentage'] != nil
		self.video_offset_in_percentage = xml_element.elements['videoOffsetInPercentage'].text
	end
	if xml_element.elements['interval'] != nil
		self.interval = xml_element.elements['interval'].text
	end
end