FakeExoMediaDrm.LicenseServer


public class FakeExoMediaDrm.LicenseServer implements MediaDrmCallback


An license server implementation to interact with FakeExoMediaDrm.

Summary

Public methods

allowingSchemeDatas

@SafeVarargs
public static FakeExoMediaDrm.LicenseServer allowingSchemeDatas(List[] schemeDatas)

executeKeyRequest

public 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

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

getReceivedProvisionRequests

public ImmutableList<ImmutableList<Byte>> getReceivedProvisionRequests()

requiringProvisioningThenAllowingSchemeDatas

@SafeVarargs
public static FakeExoMediaDrm.LicenseServer requiringProvisioningThenAllowingSchemeDatas(List[] schemeDatas)