Class: Kaltura::KalturaCaptionParams

Inherits:
KalturaAssetParams show all
Defined in:
lib/kaltura_plugins/kaltura_caption_client_plugin.rb

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

#formatObject

The caption format



161
162
163
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 161

def format
  @format
end

#is_defaultObject

Is default caption asset of the entry



157
158
159
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 157

def is_default
  @is_default
end

#labelObject

Friendly label



159
160
161
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 159

def label
  @label
end

#languageObject

The language of the caption content



155
156
157
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 155

def language
  @language
end

#source_params_idObject

Id of the caption params or the flavor params to be used as source for the caption creation



163
164
165
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 163

def source_params_id
  @source_params_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 172

def from_xml(xml_element)
	super
	if xml_element.elements['language'] != nil
		self.language = xml_element.elements['language'].text
	end
	if xml_element.elements['isDefault'] != nil
		self.is_default = xml_element.elements['isDefault'].text
	end
	if xml_element.elements['label'] != nil
		self.label = xml_element.elements['label'].text
	end
	if xml_element.elements['format'] != nil
		self.format = xml_element.elements['format'].text
	end
	if xml_element.elements['sourceParamsId'] != nil
		self.source_params_id = xml_element.elements['sourceParamsId'].text
	end
end