MediaDrmCallback


@UnstableApi
interface MediaDrmCallback

Known direct subclasses
FakeExoMediaDrm.LicenseServer

An license server implementation to interact with FakeExoMediaDrm.

HttpMediaDrmCallback

A MediaDrmCallback that makes requests using DataSource instances.

LocalMediaDrmCallback

A MediaDrmCallback that provides a fixed response to key requests.


Performs ExoMediaDrm key and provisioning requests.

Summary

Public functions

ByteArray<Byte>!

Executes a key request.

ByteArray<Byte>!
executeProvisionRequest(
    uuid: UUID!,
    request: ExoMediaDrm.ProvisionRequest!
)

Executes a provisioning request.

Public functions

executeKeyRequest

fun executeKeyRequest(uuid: UUID!, request: ExoMediaDrm.KeyRequest!): ByteArray<Byte>!

Executes a key request.

Parameters
uuid: UUID!

The UUID of the content protection scheme.

request: ExoMediaDrm.KeyRequest!

The request.

Returns
ByteArray<Byte>!

The response data.

Throws
androidx.media3.exoplayer.drm.MediaDrmCallbackException

If an error occurred executing the request.

executeProvisionRequest

fun executeProvisionRequest(
    uuid: UUID!,
    request: ExoMediaDrm.ProvisionRequest!
): ByteArray<Byte>!

Executes a provisioning request.

Parameters
uuid: UUID!

The UUID of the content protection scheme.

request: ExoMediaDrm.ProvisionRequest!

The request.

Returns
ByteArray<Byte>!

The response data.

Throws
androidx.media3.exoplayer.drm.MediaDrmCallbackException

If an error occurred executing the request.