MediaDrmCallback


@UnstableApi
public 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 methods

abstract byte[]

Executes a key request.

abstract byte[]

Executes a provisioning request.

Public methods

executeKeyRequest

abstract byte[] executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request)

Executes a key request.

Parameters
UUID uuid

The UUID of the content protection scheme.

ExoMediaDrm.KeyRequest request

The request.

Returns
byte[]

The response data.

Throws
androidx.media3.exoplayer.drm.MediaDrmCallbackException

If an error occurred executing the request.

executeProvisionRequest

abstract byte[] executeProvisionRequest(
    UUID uuid,
    ExoMediaDrm.ProvisionRequest request
)

Executes a provisioning request.

Parameters
UUID uuid

The UUID of the content protection scheme.

ExoMediaDrm.ProvisionRequest request

The request.

Returns
byte[]

The response data.

Throws
androidx.media3.exoplayer.drm.MediaDrmCallbackException

If an error occurred executing the request.