class Kaltura::KalturaThumbParams
Attributes
background_color[RW]
Hexadecimal value
crop_height[RW]
crop_type[RW]
crop_width[RW]
crop_x[RW]
crop_y[RW]
density[RW]
The image density (dpi) for example: 72 or 96
format[RW]
The container format of the Flavor Params
height[RW]
interval[RW]
interval in seconds for creating thumbnail
quality[RW]
scale_height[RW]
scale_width[RW]
source_params_id[RW]
Id of the flavor params or the thumbnail params to be used as source for the thumbnail creation
strip_profiles[RW]
Strip profiles and comments
video_offset[RW]
video_offset_in_percentage[RW]
Create thumbnail from the videoLengthpercentage second
width[RW]
Public Instance Methods
crop_height=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6136 def crop_height=(val) @crop_height = val.to_i end
crop_type=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6121 def crop_type=(val) @crop_type = val.to_i end
crop_width=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6133 def crop_width=(val) @crop_width = val.to_i end
crop_x=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6127 def crop_x=(val) @crop_x = val.to_i end
crop_y=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6130 def crop_y=(val) @crop_y = val.to_i end
density=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6157 def density=(val) @density = val.to_i end
from_xml(xml_element)
click to toggle source
Calls superclass method
Kaltura::KalturaAssetParams#from_xml
# File lib/kaltura_types.rb, line 6170 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
height=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6145 def height=(val) @height = val.to_i end
interval=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6166 def interval=(val) @interval = val.to_i end
quality=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6124 def quality=(val) @quality = val.to_i end
scale_height=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6151 def scale_height=(val) @scale_height = val.to_f end
scale_width=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6148 def scale_width=(val) @scale_width = val.to_f end
source_params_id=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6154 def source_params_id=(val) @source_params_id = val.to_i end
strip_profiles=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6160 def strip_profiles=(val) @strip_profiles = to_b(val) end
video_offset=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6139 def video_offset=(val) @video_offset = val.to_f end
video_offset_in_percentage=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6163 def video_offset_in_percentage=(val) @video_offset_in_percentage = val.to_i end
width=(val)
click to toggle source
# File lib/kaltura_types.rb, line 6142 def width=(val) @width = val.to_i end