public final class LocalMediaDrmCallback extends java.lang.Object implements MediaDrmCallback
MediaDrmCallback that provides a fixed response to key requests. Provisioning is not
supported. This implementation is primarily useful for providing locally stored keys to decrypt
ClearKey protected content. It is not suitable for use with Widevine or PlayReady protected
content.| Constructor and Description |
|---|
LocalMediaDrmCallback(byte[] keyResponse) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
executeKeyRequest(java.util.UUID uuid,
ExoMediaDrm.KeyRequest request,
java.lang.String mediaProvidedLicenseServerUrl)
Executes a key request.
|
byte[] |
executeProvisionRequest(java.util.UUID uuid,
ExoMediaDrm.ProvisionRequest request)
Executes a provisioning request.
|
public LocalMediaDrmCallback(byte[] keyResponse)
keyResponse - The fixed response for all key requests.public byte[] executeProvisionRequest(java.util.UUID uuid,
ExoMediaDrm.ProvisionRequest request)
throws java.io.IOException
MediaDrmCallbackexecuteProvisionRequest in interface MediaDrmCallbackuuid - The UUID of the content protection scheme.request - The request.java.io.IOExceptionpublic byte[] executeKeyRequest(java.util.UUID uuid,
ExoMediaDrm.KeyRequest request,
@Nullable
java.lang.String mediaProvidedLicenseServerUrl)
throws java.lang.Exception
MediaDrmCallbackexecuteKeyRequest in interface MediaDrmCallbackuuid - The UUID of the content protection scheme.request - The request generated by the content decryption module.mediaProvidedLicenseServerUrl - A license server URL provided by the media, or null if the
media does not include any license server URL.java.lang.Exception - If an error occurred executing the request.