Class: Kaltura::KalturaWidevineDrmService

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

Overview

WidevineDrmService serves as a license proxy to a Widevine license server

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaWidevineDrmService

Returns a new instance of KalturaWidevineDrmService.



166
167
168
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 166

def initialize(client)
	super(client)
end

Instance Method Details

#get_license(flavor_asset_id, referrer = KalturaNotImplemented) ⇒ Object

Get license for encrypted content playback



172
173
174
175
176
177
178
179
180
181
182
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 172

def get_license(flavor_asset_id, referrer=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'flavorAssetId', flavor_asset_id);
	# 64base encoded  
	client.add_param(kparams, 'referrer', referrer);
	client.queue_service_action_call('widevine_widevinedrm', 'getLicense', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end