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



6250
6251
6252
# File 'lib/kaltura_types.rb', line 6250

def background_color
  @background_color
end

#crop_heightObject

Returns the value of attribute crop_height.



6243
6244
6245
# File 'lib/kaltura_types.rb', line 6243

def crop_height
  @crop_height
end

#crop_typeObject

Returns the value of attribute crop_type.



6238
6239
6240
# File 'lib/kaltura_types.rb', line 6238

def crop_type
  @crop_type
end

#crop_widthObject

Returns the value of attribute crop_width.



6242
6243
6244
# File 'lib/kaltura_types.rb', line 6242

def crop_width
  @crop_width
end

#crop_xObject

Returns the value of attribute crop_x.



6240
6241
6242
# File 'lib/kaltura_types.rb', line 6240

def crop_x
  @crop_x
end

#crop_yObject

Returns the value of attribute crop_y.



6241
6242
6243
# File 'lib/kaltura_types.rb', line 6241

def crop_y
  @crop_y
end

#densityObject

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



6256
6257
6258
# File 'lib/kaltura_types.rb', line 6256

def density
  @density
end

#formatObject

The container format of the Flavor Params



6254
6255
6256
# File 'lib/kaltura_types.rb', line 6254

def format
  @format
end

#heightObject

Returns the value of attribute height.



6246
6247
6248
# File 'lib/kaltura_types.rb', line 6246

def height
  @height
end

#intervalObject

interval in seconds for creating thumbnail



6262
6263
6264
# File 'lib/kaltura_types.rb', line 6262

def interval
  @interval
end

#qualityObject

Returns the value of attribute quality.



6239
6240
6241
# File 'lib/kaltura_types.rb', line 6239

def quality
  @quality
end

#scale_heightObject

Returns the value of attribute scale_height.



6248
6249
6250
# File 'lib/kaltura_types.rb', line 6248

def scale_height
  @scale_height
end

#scale_widthObject

Returns the value of attribute scale_width.



6247
6248
6249
# File 'lib/kaltura_types.rb', line 6247

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



6252
6253
6254
# File 'lib/kaltura_types.rb', line 6252

def source_params_id
  @source_params_id
end

#strip_profilesObject

Strip profiles and comments



6258
6259
6260
# File 'lib/kaltura_types.rb', line 6258

def strip_profiles
  @strip_profiles
end

#video_offsetObject

Returns the value of attribute video_offset.



6244
6245
6246
# File 'lib/kaltura_types.rb', line 6244

def video_offset
  @video_offset
end

#video_offset_in_percentageObject

Create thumbnail from the videoLengthpercentage second



6260
6261
6262
# File 'lib/kaltura_types.rb', line 6260

def video_offset_in_percentage
  @video_offset_in_percentage
end

#widthObject

Returns the value of attribute width.



6245
6246
6247
# File 'lib/kaltura_types.rb', line 6245

def width
  @width
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
# File 'lib/kaltura_types.rb', line 6313

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