docs/doc/reference/com/google/android/exoplayer2/drm/LocalMediaDrmCallback.html
Package com.google.android.exoplayer2.drm
All Implemented Interfaces:MediaDrmCallback
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classLocalMediaDrmCallbackextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[MediaDrmCallback](MediaDrmCallback.html "interface in com.google.android.exoplayer2.drm")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
A 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.
Constructors | Constructor | Description |
| --- | --- |
| LocalMediaDrmCallback(byte[] keyResponse) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| byte[] | executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request) |
Deprecated.
Executes a key request.
|
| byte[] | executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest request) |
Deprecated.
Executes a provisioning request. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public LocalMediaDrmCallback(byte[] keyResponse)
Deprecated.
Parameters:keyResponse - The fixed response for all key requests.
-
public byte[] executeProvisionRequest([UUID](https://developer.android.com/reference/java/util/UUID.html "class or interface in java.util")uuid,[ExoMediaDrm.ProvisionRequest](ExoMediaDrm.ProvisionRequest.html "class in com.google.android.exoplayer2.drm")request)
Deprecated.
Description copied from interface: MediaDrmCallback
Executes a provisioning request.
Specified by:executeProvisionRequest in interface MediaDrmCallbackParameters:uuid - The UUID of the content protection scheme.request - The request.Returns:The response data.
-
public byte[] executeKeyRequest([UUID](https://developer.android.com/reference/java/util/UUID.html "class or interface in java.util")uuid,[ExoMediaDrm.KeyRequest](ExoMediaDrm.KeyRequest.html "class in com.google.android.exoplayer2.drm")request)
Deprecated.
Description copied from interface: MediaDrmCallback
Executes a key request.
Specified by:executeKeyRequest in interface MediaDrmCallbackParameters:uuid - The UUID of the content protection scheme.request - The request.Returns:The response data.