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



6107
6108
6109
# File 'lib/kaltura_types.rb', line 6107

def background_color
  @background_color
end

#crop_heightObject

Returns the value of attribute crop_height.



6099
6100
6101
# File 'lib/kaltura_types.rb', line 6099

def crop_height
  @crop_height
end

#crop_typeObject

Returns the value of attribute crop_type.



6094
6095
6096
# File 'lib/kaltura_types.rb', line 6094

def crop_type
  @crop_type
end

#crop_widthObject

Returns the value of attribute crop_width.



6098
6099
6100
# File 'lib/kaltura_types.rb', line 6098

def crop_width
  @crop_width
end

#crop_xObject

Returns the value of attribute crop_x.



6096
6097
6098
# File 'lib/kaltura_types.rb', line 6096

def crop_x
  @crop_x
end

#crop_yObject

Returns the value of attribute crop_y.



6097
6098
6099
# File 'lib/kaltura_types.rb', line 6097

def crop_y
  @crop_y
end

#densityObject

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



6116
6117
6118
# File 'lib/kaltura_types.rb', line 6116

def density
  @density
end

#formatObject

The container format of the Flavor Params



6113
6114
6115
# File 'lib/kaltura_types.rb', line 6113

def format
  @format
end

#heightObject

Returns the value of attribute height.



6102
6103
6104
# File 'lib/kaltura_types.rb', line 6102

def height
  @height
end

#qualityObject

Returns the value of attribute quality.



6095
6096
6097
# File 'lib/kaltura_types.rb', line 6095

def quality
  @quality
end

#scale_heightObject

Returns the value of attribute scale_height.



6104
6105
6106
# File 'lib/kaltura_types.rb', line 6104

def scale_height
  @scale_height
end

#scale_widthObject

Returns the value of attribute scale_width.



6103
6104
6105
# File 'lib/kaltura_types.rb', line 6103

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



6110
6111
6112
# File 'lib/kaltura_types.rb', line 6110

def source_params_id
  @source_params_id
end

#strip_profilesObject

Strip profiles and comments



6119
6120
6121
# File 'lib/kaltura_types.rb', line 6119

def strip_profiles
  @strip_profiles
end

#video_offsetObject

Returns the value of attribute video_offset.



6100
6101
6102
# File 'lib/kaltura_types.rb', line 6100

def video_offset
  @video_offset
end

#video_offset_in_percentageObject

Create thumbnail from the videoLengthpercentage second



6122
6123
6124
# File 'lib/kaltura_types.rb', line 6122

def video_offset_in_percentage
  @video_offset_in_percentage
end

#widthObject

Returns the value of attribute width.



6101
6102
6103
# File 'lib/kaltura_types.rb', line 6101

def width
  @width
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
# File 'lib/kaltura_types.rb', line 6170

def from_xml(xml_element)
	super
	self.crop_type = xml_element.elements['cropType'].text
	self.quality = xml_element.elements['quality'].text
	self.crop_x = xml_element.elements['cropX'].text
	self.crop_y = xml_element.elements['cropY'].text
	self.crop_width = xml_element.elements['cropWidth'].text
	self.crop_height = xml_element.elements['cropHeight'].text
	self.video_offset = xml_element.elements['videoOffset'].text
	self.width = xml_element.elements['width'].text
	self.height = xml_element.elements['height'].text
	self.scale_width = xml_element.elements['scaleWidth'].text
	self.scale_height = xml_element.elements['scaleHeight'].text
	self.background_color = xml_element.elements['backgroundColor'].text
	self.source_params_id = xml_element.elements['sourceParamsId'].text
	self.format = xml_element.elements['format'].text
	self.density = xml_element.elements['density'].text
	self.strip_profiles = xml_element.elements['stripProfiles'].text
	self.video_offset_in_percentage = xml_element.elements['videoOffsetInPercentage'].text
end