Class: Kaltura::KalturaThumbParams
- Inherits:
-
KalturaAssetParams
- Object
- KalturaObjectBase
- KalturaAssetParams
- Kaltura::KalturaThumbParams
- Defined in:
- lib/kaltura_types.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#background_color ⇒ Object
Hexadecimal value.
-
#crop_height ⇒ Object
Returns the value of attribute crop_height.
-
#crop_type ⇒ Object
Returns the value of attribute crop_type.
-
#crop_width ⇒ Object
Returns the value of attribute crop_width.
-
#crop_x ⇒ Object
Returns the value of attribute crop_x.
-
#crop_y ⇒ Object
Returns the value of attribute crop_y.
-
#density ⇒ Object
The image density (dpi) for example: 72 or 96.
-
#format ⇒ Object
The container format of the Flavor Params.
-
#height ⇒ Object
Returns the value of attribute height.
-
#interval ⇒ Object
interval in seconds for creating thumbnail.
-
#quality ⇒ Object
Returns the value of attribute quality.
-
#scale_height ⇒ Object
Returns the value of attribute scale_height.
-
#scale_width ⇒ Object
Returns the value of attribute scale_width.
-
#source_params_id ⇒ Object
Id of the flavor params or the thumbnail params to be used as source for the thumbnail creation.
-
#strip_profiles ⇒ Object
Strip profiles and comments.
-
#video_offset ⇒ Object
Returns the value of attribute video_offset.
-
#video_offset_in_percentage ⇒ Object
Create thumbnail from the videoLengthpercentage second.
-
#width ⇒ Object
Returns the value of attribute width.
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
Instance Attribute Details
#background_color ⇒ Object
Hexadecimal value
6005 6006 6007 |
# File 'lib/kaltura_types.rb', line 6005 def background_color @background_color end |
#crop_height ⇒ Object
Returns the value of attribute crop_height.
5998 5999 6000 |
# File 'lib/kaltura_types.rb', line 5998 def crop_height @crop_height end |
#crop_type ⇒ Object
Returns the value of attribute crop_type.
5993 5994 5995 |
# File 'lib/kaltura_types.rb', line 5993 def crop_type @crop_type end |
#crop_width ⇒ Object
Returns the value of attribute crop_width.
5997 5998 5999 |
# File 'lib/kaltura_types.rb', line 5997 def crop_width @crop_width end |
#crop_x ⇒ Object
Returns the value of attribute crop_x.
5995 5996 5997 |
# File 'lib/kaltura_types.rb', line 5995 def crop_x @crop_x end |
#crop_y ⇒ Object
Returns the value of attribute crop_y.
5996 5997 5998 |
# File 'lib/kaltura_types.rb', line 5996 def crop_y @crop_y end |
#density ⇒ Object
The image density (dpi) for example: 72 or 96
6011 6012 6013 |
# File 'lib/kaltura_types.rb', line 6011 def density @density end |
#format ⇒ Object
The container format of the Flavor Params
6009 6010 6011 |
# File 'lib/kaltura_types.rb', line 6009 def format @format end |
#height ⇒ Object
Returns the value of attribute height.
6001 6002 6003 |
# File 'lib/kaltura_types.rb', line 6001 def height @height end |
#interval ⇒ Object
interval in seconds for creating thumbnail
6017 6018 6019 |
# File 'lib/kaltura_types.rb', line 6017 def interval @interval end |
#quality ⇒ Object
Returns the value of attribute quality.
5994 5995 5996 |
# File 'lib/kaltura_types.rb', line 5994 def quality @quality end |
#scale_height ⇒ Object
Returns the value of attribute scale_height.
6003 6004 6005 |
# File 'lib/kaltura_types.rb', line 6003 def scale_height @scale_height end |
#scale_width ⇒ Object
Returns the value of attribute scale_width.
6002 6003 6004 |
# File 'lib/kaltura_types.rb', line 6002 def scale_width @scale_width end |
#source_params_id ⇒ Object
Id of the flavor params or the thumbnail params to be used as source for the thumbnail creation
6007 6008 6009 |
# File 'lib/kaltura_types.rb', line 6007 def source_params_id @source_params_id end |
#strip_profiles ⇒ Object
Strip profiles and comments
6013 6014 6015 |
# File 'lib/kaltura_types.rb', line 6013 def strip_profiles @strip_profiles end |
#video_offset ⇒ Object
Returns the value of attribute video_offset.
5999 6000 6001 |
# File 'lib/kaltura_types.rb', line 5999 def video_offset @video_offset end |
#video_offset_in_percentage ⇒ Object
Create thumbnail from the videoLengthpercentage second
6015 6016 6017 |
# File 'lib/kaltura_types.rb', line 6015 def video_offset_in_percentage @video_offset_in_percentage end |
#width ⇒ Object
Returns the value of attribute width.
6000 6001 6002 |
# File 'lib/kaltura_types.rb', line 6000 def width @width end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 |
# File 'lib/kaltura_types.rb', line 6068 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 |