Back to Exoplayer

LocalMediaDrmCallback (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/drm/LocalMediaDrmCallback.html

latest3.6 KB
Original Source

Package com.google.android.exoplayer2.drm

Class LocalMediaDrmCallback

  • java.lang.Object

    • com.google.android.exoplayer2.drm.LocalMediaDrmCallback
  • 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.

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. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

LocalMediaDrmCallback

public LocalMediaDrmCallback​(byte[] keyResponse)

Deprecated. Parameters:keyResponse - The fixed response for all key requests.

Method Detail

- 

executeProvisionRequest

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.

- 

executeKeyRequest

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.