Class: Kaltura::KalturaSessionService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaSessionService

Returns a new instance of KalturaSessionService.



4788
4789
4790
# File 'lib/kaltura_client.rb', line 4788

def initialize(client)
	super(client)
end

Instance Method Details

#start(secret, user_id = '', type = 0, partner_id = -1,, expiry = 86400, privileges = '') ⇒ Object



4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
# File 'lib/kaltura_client.rb', line 4792

def start(secret, user_id='', type=0, partner_id=-1, expiry=86400, privileges='')
	kparams = {}
	client.add_param(kparams, 'secret', secret);
	client.add_param(kparams, 'userId', user_id);
	client.add_param(kparams, 'type', type);
	client.add_param(kparams, 'partnerId', partner_id);
	client.add_param(kparams, 'expiry', expiry);
	client.add_param(kparams, 'privileges', privileges);
	client.queue_service_action_call('session', 'start', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#start_widget_session(widget_id, expiry = 86400) ⇒ Object



4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
# File 'lib/kaltura_client.rb', line 4807

def start_widget_session(widget_id, expiry=86400)
	kparams = {}
	client.add_param(kparams, 'widgetId', widget_id);
	client.add_param(kparams, 'expiry', expiry);
	client.queue_service_action_call('session', 'startWidgetSession', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end