Class: Kaltura::KalturaWidevineDrmService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaWidevineDrmService
- 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
Instance Method Summary collapse
-
#get_license(flavor_asset_id, referrer = KalturaNotImplemented) ⇒ string
Get license for encrypted content playback.
-
#initialize(client) ⇒ KalturaWidevineDrmService
constructor
A new instance of KalturaWidevineDrmService.
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
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 |