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.



270
271
272
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 270

def initialize(client)
	super(client)
end

Instance Method Details

#get_license(flavor_asset_id, referrer = KalturaNotImplemented) ⇒ string

Get license for encrypted content playback

Returns:

  • (string)


276
277
278
279
280
281
282
283
284
285
# File 'lib/kaltura_plugins/kaltura_widevine_client_plugin.rb', line 276

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