Back to Exoplayer

MediaDrmCallback (ExoPlayer library)

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

latest2.6 KB
Original Source

Package com.google.android.exoplayer2.drm

Interface MediaDrmCallback

  • All Known Implementing Classes:FakeExoMediaDrm.LicenseServer, HttpMediaDrmCallback, LocalMediaDrmCallback

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceMediaDrmCallback

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.

Performs ExoMediaDrm key and provisioning requests.

Method Summary

All Methods Instance Methods Abstract 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

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)
                        throws[MediaDrmCallbackException](MediaDrmCallbackException.html "class in com.google.android.exoplayer2.drm")

Deprecated.

Executes a provisioning request. Parameters:uuid - The UUID of the content protection scheme.request - The request.Returns:The response data.Throws:MediaDrmCallbackException - If an error occurred executing the request.

- 

executeKeyRequest

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)
                  throws[MediaDrmCallbackException](MediaDrmCallbackException.html "class in com.google.android.exoplayer2.drm")

Deprecated.

Executes a key request. Parameters:uuid - The UUID of the content protection scheme.request - The request.Returns:The response data.Throws:MediaDrmCallbackException - If an error occurred executing the request.