Class LocalMediaDrmCallback
- java.lang.Object
-
- com.google.android.exoplayer2.drm.LocalMediaDrmCallback
-
- All Implemented Interfaces:
MediaDrmCallback
@Deprecated public final class LocalMediaDrmCallback extends Object implements MediaDrmCallback
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.AMediaDrmCallback
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 Summary
Constructors Constructor Description LocalMediaDrmCallback(byte[] keyResponse)
Deprecated.
-
Method Summary
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.
-
-
-
Method Detail
-
executeProvisionRequest
public byte[] executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest request)
Deprecated.Description copied from interface:MediaDrmCallback
Executes a provisioning request.- Specified by:
executeProvisionRequest
in interfaceMediaDrmCallback
- Parameters:
uuid
- The UUID of the content protection scheme.request
- The request.- Returns:
- The response data.
-
executeKeyRequest
public byte[] executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request)
Deprecated.Description copied from interface:MediaDrmCallback
Executes a key request.- Specified by:
executeKeyRequest
in interfaceMediaDrmCallback
- Parameters:
uuid
- The UUID of the content protection scheme.request
- The request.- Returns:
- The response data.
-
-