Class: Kaltura::KalturaMediaService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaMediaService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #add_from_bulk(media_entry, url, bulk_upload_id) ⇒ Object
- #add_from_recorded_webcam(media_entry, webcam_token_id) ⇒ Object
- #add_from_search_result(media_entry = nil, search_result = nil) ⇒ Object
- #add_from_uploaded_file(media_entry, upload_token_id) ⇒ Object
- #add_from_url(media_entry, url) ⇒ Object
- #anonymous_rank(entry_id, rank) ⇒ Object
- #approve(entry_id) ⇒ Object
- #count(filter = nil) ⇒ Object
- #delete(entry_id) ⇒ Object
- #flag(moderation_flag) ⇒ Object
- #get(entry_id, version = -1)) ⇒ Object
-
#initialize(client) ⇒ KalturaMediaService
constructor
A new instance of KalturaMediaService.
- #list(filter = nil, pager = nil) ⇒ Object
- #list_flags(entry_id, pager = nil) ⇒ Object
- #reject(entry_id) ⇒ Object
- #request_conversion(entry_id, file_format) ⇒ Object
- #update(entry_id, media_entry) ⇒ Object
- #update_thumbnail(entry_id, time_offset) ⇒ Object
- #update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset) ⇒ Object
- #update_thumbnail_from_url(entry_id, url) ⇒ Object
- #update_thumbnail_jpeg(entry_id, file_data) ⇒ Object
- #upload(file_data) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaMediaService
Returns a new instance of KalturaMediaService.
4121 4122 4123 |
# File 'lib/kaltura_client.rb', line 4121 def initialize(client) super(client) end |
Instance Method Details
#add_from_bulk(media_entry, url, bulk_upload_id) ⇒ Object
4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 |
# File 'lib/kaltura_client.rb', line 4125 def add_from_bulk(media_entry, url, bulk_upload_id) kparams = {} client.add_param(kparams, 'mediaEntry', media_entry); client.add_param(kparams, 'url', url); client.add_param(kparams, 'bulkUploadId', bulk_upload_id); client.queue_service_action_call('media', 'addFromBulk', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_from_recorded_webcam(media_entry, webcam_token_id) ⇒ Object
4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 |
# File 'lib/kaltura_client.rb', line 4170 def add_from_recorded_webcam(media_entry, webcam_token_id) kparams = {} client.add_param(kparams, 'mediaEntry', media_entry); client.add_param(kparams, 'webcamTokenId', webcam_token_id); client.queue_service_action_call('media', 'addFromRecordedWebcam', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_from_search_result(media_entry = nil, search_result = nil) ⇒ Object
4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 |
# File 'lib/kaltura_client.rb', line 4148 def add_from_search_result(media_entry=nil, search_result=nil) kparams = {} client.add_param(kparams, 'mediaEntry', media_entry); client.add_param(kparams, 'searchResult', search_result); client.queue_service_action_call('media', 'addFromSearchResult', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_from_uploaded_file(media_entry, upload_token_id) ⇒ Object
4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 |
# File 'lib/kaltura_client.rb', line 4159 def add_from_uploaded_file(media_entry, upload_token_id) kparams = {} client.add_param(kparams, 'mediaEntry', media_entry); client.add_param(kparams, 'uploadTokenId', upload_token_id); client.queue_service_action_call('media', 'addFromUploadedFile', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_from_url(media_entry, url) ⇒ Object
4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 |
# File 'lib/kaltura_client.rb', line 4137 def add_from_url(media_entry, url) kparams = {} client.add_param(kparams, 'mediaEntry', media_entry); client.add_param(kparams, 'url', url); client.queue_service_action_call('media', 'addFromUrl', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#anonymous_rank(entry_id, rank) ⇒ Object
4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 |
# File 'lib/kaltura_client.rb', line 4341 def anonymous_rank(entry_id, rank) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'rank', rank); client.queue_service_action_call('media', 'anonymousRank', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#approve(entry_id) ⇒ Object
4320 4321 4322 4323 4324 4325 4326 4327 4328 |
# File 'lib/kaltura_client.rb', line 4320 def approve(entry_id) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.queue_service_action_call('media', 'approve', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#count(filter = nil) ⇒ Object
4224 4225 4226 4227 4228 4229 4230 4231 4232 |
# File 'lib/kaltura_client.rb', line 4224 def count(filter=nil) kparams = {} client.add_param(kparams, 'filter', filter); client.queue_service_action_call('media', 'count', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(entry_id) ⇒ Object
4203 4204 4205 4206 4207 4208 4209 4210 4211 |
# File 'lib/kaltura_client.rb', line 4203 def delete(entry_id) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.queue_service_action_call('media', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#flag(moderation_flag) ⇒ Object
4300 4301 4302 4303 4304 4305 4306 4307 4308 |
# File 'lib/kaltura_client.rb', line 4300 def flag(moderation_flag) kparams = {} client.add_param(kparams, 'moderationFlag', moderation_flag); client.queue_service_action_call('media', 'flag', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(entry_id, version = -1)) ⇒ Object
4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 |
# File 'lib/kaltura_client.rb', line 4181 def get(entry_id, version=-1) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'version', version); client.queue_service_action_call('media', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = nil, pager = nil) ⇒ Object
4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 |
# File 'lib/kaltura_client.rb', line 4213 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('media', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list_flags(entry_id, pager = nil) ⇒ Object
4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 |
# File 'lib/kaltura_client.rb', line 4330 def list_flags(entry_id, pager=nil) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('media', 'listFlags', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#reject(entry_id) ⇒ Object
4310 4311 4312 4313 4314 4315 4316 4317 4318 |
# File 'lib/kaltura_client.rb', line 4310 def reject(entry_id) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.queue_service_action_call('media', 'reject', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#request_conversion(entry_id, file_format) ⇒ Object
4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 |
# File 'lib/kaltura_client.rb', line 4289 def request_conversion(entry_id, file_format) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'fileFormat', file_format); client.queue_service_action_call('media', 'requestConversion', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(entry_id, media_entry) ⇒ Object
4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 |
# File 'lib/kaltura_client.rb', line 4192 def update(entry_id, media_entry) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'mediaEntry', media_entry); client.queue_service_action_call('media', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update_thumbnail(entry_id, time_offset) ⇒ Object
4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 |
# File 'lib/kaltura_client.rb', line 4244 def update_thumbnail(entry_id, time_offset) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'timeOffset', time_offset); client.queue_service_action_call('media', 'updateThumbnail', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset) ⇒ Object
4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 |
# File 'lib/kaltura_client.rb', line 4255 def update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'sourceEntryId', source_entry_id); client.add_param(kparams, 'timeOffset', time_offset); client.queue_service_action_call('media', 'updateThumbnailFromSourceEntry', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update_thumbnail_from_url(entry_id, url) ⇒ Object
4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 |
# File 'lib/kaltura_client.rb', line 4278 def update_thumbnail_from_url(entry_id, url) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'url', url); client.queue_service_action_call('media', 'updateThumbnailFromUrl', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update_thumbnail_jpeg(entry_id, file_data) ⇒ Object
4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 |
# File 'lib/kaltura_client.rb', line 4267 def update_thumbnail_jpeg(entry_id, file_data) kparams = {} client.add_param(kparams, 'entryId', entry_id); client.add_param(kparams, 'fileData', file_data); client.queue_service_action_call('media', 'updateThumbnailJpeg', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#upload(file_data) ⇒ Object
4234 4235 4236 4237 4238 4239 4240 4241 4242 |
# File 'lib/kaltura_client.rb', line 4234 def upload(file_data) kparams = {} client.add_param(kparams, 'fileData', file_data); client.queue_service_action_call('media', 'upload', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |