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



6043
6044
6045
# File 'lib/kaltura_types.rb', line 6043

def background_color
  @background_color
end

#crop_heightObject

Returns the value of attribute crop_height.



6036
6037
6038
# File 'lib/kaltura_types.rb', line 6036

def crop_height
  @crop_height
end

#crop_typeObject

Returns the value of attribute crop_type.



6031
6032
6033
# File 'lib/kaltura_types.rb', line 6031

def crop_type
  @crop_type
end

#crop_widthObject

Returns the value of attribute crop_width.



6035
6036
6037
# File 'lib/kaltura_types.rb', line 6035

def crop_width
  @crop_width
end

#crop_xObject

Returns the value of attribute crop_x.



6033
6034
6035
# File 'lib/kaltura_types.rb', line 6033

def crop_x
  @crop_x
end

#crop_yObject

Returns the value of attribute crop_y.



6034
6035
6036
# File 'lib/kaltura_types.rb', line 6034

def crop_y
  @crop_y
end

#densityObject

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



6049
6050
6051
# File 'lib/kaltura_types.rb', line 6049

def density
  @density
end

#formatObject

The container format of the Flavor Params



6047
6048
6049
# File 'lib/kaltura_types.rb', line 6047

def format
  @format
end

#heightObject

Returns the value of attribute height.



6039
6040
6041
# File 'lib/kaltura_types.rb', line 6039

def height
  @height
end

#intervalObject

interval in seconds for creating thumbnail



6055
6056
6057
# File 'lib/kaltura_types.rb', line 6055

def interval
  @interval
end

#qualityObject

Returns the value of attribute quality.



6032
6033
6034
# File 'lib/kaltura_types.rb', line 6032

def quality
  @quality
end

#scale_heightObject

Returns the value of attribute scale_height.



6041
6042
6043
# File 'lib/kaltura_types.rb', line 6041

def scale_height
  @scale_height
end

#scale_widthObject

Returns the value of attribute scale_width.



6040
6041
6042
# File 'lib/kaltura_types.rb', line 6040

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



6045
6046
6047
# File 'lib/kaltura_types.rb', line 6045

def source_params_id
  @source_params_id
end

#strip_profilesObject

Strip profiles and comments



6051
6052
6053
# File 'lib/kaltura_types.rb', line 6051

def strip_profiles
  @strip_profiles
end

#video_offsetObject

Returns the value of attribute video_offset.



6037
6038
6039
# File 'lib/kaltura_types.rb', line 6037

def video_offset
  @video_offset
end

#video_offset_in_percentageObject

Create thumbnail from the videoLengthpercentage second



6053
6054
6055
# File 'lib/kaltura_types.rb', line 6053

def video_offset_in_percentage
  @video_offset_in_percentage
end

#widthObject

Returns the value of attribute width.



6038
6039
6040
# File 'lib/kaltura_types.rb', line 6038

def width
  @width
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
# File 'lib/kaltura_types.rb', line 6106

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