Class: Kaltura::KalturaCaptionParams
- Inherits:
-
KalturaAssetParams
- Object
- KalturaObjectBase
- KalturaAssetParams
- Kaltura::KalturaCaptionParams
- Defined in:
- lib/kaltura_plugins/kaltura_caption_client_plugin.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
The caption format.
-
#is_default ⇒ Object
Is default caption asset of the entry.
-
#label ⇒ Object
Friendly label.
-
#language ⇒ Object
The language of the caption content.
-
#source_params_id ⇒ Object
Id of the caption params or the flavor params to be used as source for the caption creation.
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
#format ⇒ Object
The caption format
130 131 132 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 130 def format @format end |
#is_default ⇒ Object
Is default caption asset of the entry
124 125 126 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 124 def is_default @is_default end |
#label ⇒ Object
Friendly label
127 128 129 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 127 def label @label end |
#language ⇒ Object
The language of the caption content
121 122 123 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 121 def language @language end |
#source_params_id ⇒ Object
Id of the caption params or the flavor params to be used as source for the caption creation
133 134 135 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 133 def source_params_id @source_params_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
142 143 144 145 146 147 148 149 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 142 def from_xml(xml_element) super self.language = xml_element.elements['language'].text self.is_default = xml_element.elements['isDefault'].text self.label = xml_element.elements['label'].text self.format = xml_element.elements['format'].text self.source_params_id = xml_element.elements['sourceParamsId'].text end |