FakeExoMediaDrm.LicenseServer


class FakeExoMediaDrm.LicenseServer : MediaDrmCallback


An license server implementation to interact with FakeExoMediaDrm.

Summary

Public functions

allowingSchemeDatas

@SafeVarargs
java-static fun allowingSchemeDatas(
    schemeDatas: Array<(Mutable)List<DrmInitData.SchemeData!>!>!
): FakeExoMediaDrm.LicenseServer!

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.

getReceivedProvisionRequests

fun getReceivedProvisionRequests(): ImmutableList<ImmutableList<Byte!>!>!

requiringProvisioningThenAllowingSchemeDatas

@SafeVarargs
java-static fun requiringProvisioningThenAllowingSchemeDatas(
    schemeDatas: Array<(Mutable)List<DrmInitData.SchemeData!>!>!
): FakeExoMediaDrm.LicenseServer!