class Kaltura::KalturaPlayReadyDrmService
Public Class Methods
new(client)
click to toggle source
Calls superclass method
Kaltura::KalturaServiceBase::new
# File lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb, line 414 def initialize(client) super(client) end
Public Instance Methods
generate_key()
click to toggle source
Generate key id and content key for PlayReady encryption @return [KalturaPlayReadyContentKey]
# File lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb, line 420 def generate_key() kparams = {} client.queue_service_action_call('playready_playreadydrm', 'generateKey', 'KalturaPlayReadyContentKey', kparams) if (client.is_multirequest) return nil end return client.do_queue() end
get_content_keys(key_ids)
click to toggle source
Get content keys for input key ids @return [array]
# File lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb, line 431 def get_content_keys(key_ids) kparams = {} client.add_param(kparams, 'keyIds', key_ids) client.queue_service_action_call('playready_playreadydrm', 'getContentKeys', 'KalturaPlayReadyContentKey', kparams) if (client.is_multirequest) return nil end return client.do_queue() end
get_entry_content_key(entry_id, create_if_missing=false)
click to toggle source
Get content key and key id for the given entry @return [KalturaPlayReadyContentKey]
# File lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb, line 443 def get_entry_content_key(entry_id, create_if_missing=false) kparams = {} client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'createIfMissing', create_if_missing) client.queue_service_action_call('playready_playreadydrm', 'getEntryContentKey', 'KalturaPlayReadyContentKey', kparams) if (client.is_multirequest) return nil end return client.do_queue() end
get_license_details(key_id, device_id, device_type, entry_id=KalturaNotImplemented, referrer=KalturaNotImplemented)
click to toggle source
Get Play Ready policy and dates for license creation @return [KalturaPlayReadyLicenseDetails]
# File lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb, line 456 def get_license_details(key_id, device_id, device_type, entry_id=KalturaNotImplemented, referrer=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'keyId', key_id) client.add_param(kparams, 'deviceId', device_id) client.add_param(kparams, 'deviceType', device_type) client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'referrer', referrer) client.queue_service_action_call('playready_playreadydrm', 'getLicenseDetails', 'KalturaPlayReadyLicenseDetails', kparams) if (client.is_multirequest) return nil end return client.do_queue() end