Class: Kaltura::KalturaCaptionAsset

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

Instance Attribute Summary collapse

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, #size_in_bytes, #tags, #updated_at, #version

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#accuracyObject

The Accuracy of the caption content



89
90
91
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 89

def accuracy
  @accuracy
end

#associated_transcript_idsObject

List of associated transcript asset id’s, comma separated



93
94
95
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 93

def associated_transcript_ids
  @associated_transcript_ids
end

#caption_params_idObject

The Caption Params used to create this Caption Asset



71
72
73
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 71

def caption_params_id
  @caption_params_id
end

#display_on_playerObject

The Accuracy of the caption content



91
92
93
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 91

def display_on_player
  @display_on_player
end

#formatObject

The caption format



81
82
83
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 81

def format
  @format
end

#is_defaultObject

Is default caption asset of the entry



77
78
79
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 77

def is_default
  @is_default
end

#labelObject

Friendly label



79
80
81
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 79

def label
  @label
end

#languageObject

The language of the caption asset content



73
74
75
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 73

def language
  @language
end

#language_codeObject

The language of the caption asset content



75
76
77
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 75

def language_code
  @language_code
end

#parent_idObject

The parent id of the asset



87
88
89
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 87

def parent_id
  @parent_id
end

#sourceObject

The source of the asset



83
84
85
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 83

def source
  @source
end

#statusObject

The status of the asset



85
86
87
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 85

def status
  @status
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



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
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 111

def from_xml(xml_element)
	super
	if xml_element.elements['captionParamsId'] != nil
		self.caption_params_id = 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['source'] != nil
		self.source = xml_element.elements['source'].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