Class: Kaltura::KalturaThumbnailService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaThumbnailService

Returns a new instance of KalturaThumbnailService.



35
36
37
# File 'lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb', line 35

def initialize(client)
	super(client)
end

Instance Method Details

#transform(transform_string) ⇒ Object

Retrieves a thumbnail according to the required transformation

Returns:



41
42
43
44
45
46
47
48
49
# File 'lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb', line 41

def transform(transform_string)
	kparams = {}
	client.add_param(kparams, 'transformString', transform_string)
	client.queue_service_action_call('thumbnail_thumbnail', 'transform', '', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end