Class: Kaltura::KalturaCaptionAsset
- Inherits:
-
KalturaAsset
- Object
- KalturaObjectBase
- KalturaAsset
- Kaltura::KalturaCaptionAsset
- Defined in:
- lib/kaltura_plugins/kaltura_caption_client_plugin.rb
Instance Attribute Summary collapse
-
#accuracy ⇒ Object
The Accuracy of the caption content.
-
#associated_transcript_ids ⇒ Object
List of associated transcript asset id’s, comma separated.
-
#caption_params_id ⇒ Object
The Caption Params used to create this Caption Asset.
-
#display_on_player ⇒ Object
The Accuracy of the caption content.
-
#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 asset content.
-
#language_code ⇒ Object
The language of the caption asset content.
-
#parent_id ⇒ Object
The parent id of the asset.
-
#status ⇒ Object
The status of the asset.
Attributes inherited from KalturaAsset
#actual_source_asset_params_ids, #created_at, #deleted_at, #description, #entry_id, #file_ext, #id, #partner_data, #partner_description, #partner_id, #size, #tags, #updated_at, #version
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#accuracy ⇒ Object
The Accuracy of the caption content
81 82 83 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 81 def accuracy @accuracy end |
#associated_transcript_ids ⇒ Object
List of associated transcript asset id’s, comma separated
85 86 87 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 85 def associated_transcript_ids @associated_transcript_ids end |
#caption_params_id ⇒ Object
The Caption Params used to create this Caption Asset
65 66 67 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 65 def @caption_params_id end |
#display_on_player ⇒ Object
The Accuracy of the caption content
83 84 85 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 83 def display_on_player @display_on_player end |
#format ⇒ Object
The caption format
75 76 77 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 75 def format @format end |
#is_default ⇒ Object
Is default caption asset of the entry
71 72 73 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 71 def is_default @is_default end |
#label ⇒ Object
Friendly label
73 74 75 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 73 def label @label end |
#language ⇒ Object
The language of the caption asset content
67 68 69 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 67 def language @language end |
#language_code ⇒ Object
The language of the caption asset content
69 70 71 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 69 def language_code @language_code end |
#parent_id ⇒ Object
The parent id of the asset
79 80 81 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 79 def parent_id @parent_id end |
#status ⇒ Object
The status of the asset
77 78 79 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 77 def status @status end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 103 def from_xml(xml_element) super if xml_element.elements['captionParamsId'] != nil self. = xml_element.elements['captionParamsId'].text end if xml_element.elements['language'] != nil self.language = xml_element.elements['language'].text end if xml_element.elements['languageCode'] != nil self.language_code = xml_element.elements['languageCode'].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['status'] != nil self.status = xml_element.elements['status'].text end if xml_element.elements['parentId'] != nil self.parent_id = xml_element.elements['parentId'].text end if xml_element.elements['accuracy'] != nil self.accuracy = xml_element.elements['accuracy'].text end if xml_element.elements['displayOnPlayer'] != nil self.display_on_player = xml_element.elements['displayOnPlayer'].text end if xml_element.elements['associatedTranscriptIds'] != nil self.associated_transcript_ids = xml_element.elements['associatedTranscriptIds'].text end end |