MediaDrmCallback
@UnstableApi
interface MediaDrmCallback
FakeExoMediaDrm.LicenseServer |
An license server implementation to interact with |
HttpMediaDrmCallback |
A |
LocalMediaDrmCallback |
A |
Performs ExoMediaDrm key and provisioning requests.
Summary
Nested types |
|---|
|
Response data from the |
|
Builder for |
Public functions |
|
|---|---|
MediaDrmCallback.Response! |
executeKeyRequest(uuid: UUID!, request: ExoMediaDrm.KeyRequest!)Executes a key request. |
MediaDrmCallback.Response! |
executeProvisionRequest(Executes a provisioning request. |
Public functions
executeKeyRequest
fun executeKeyRequest(uuid: UUID!, request: ExoMediaDrm.KeyRequest!): MediaDrmCallback.Response!
Executes a key request.
The LoadEventInfo returned inside the Response will have the following fields unset, and they must be updated by caller before the LoadEventInfo is used elsewhere:
| Parameters | |
|---|---|
uuid: UUID! |
The UUID of the content protection scheme. |
request: ExoMediaDrm.KeyRequest! |
The request. |
| Returns | |
|---|---|
MediaDrmCallback.Response! |
The response data. |
| Throws | |
|---|---|
androidx.media3.exoplayer.drm.MediaDrmCallbackException |
If an error occurred executing the request. |
executeProvisionRequest
fun executeProvisionRequest(
uuid: UUID!,
request: ExoMediaDrm.ProvisionRequest!
): MediaDrmCallback.Response!
Executes a provisioning request.
The LoadEventInfo returned inside the Response will have the following fields unset, and they must be updated by caller before the LoadEventInfo is used elsewhere:
| Parameters | |
|---|---|
uuid: UUID! |
The UUID of the content protection scheme. |
request: ExoMediaDrm.ProvisionRequest! |
The request. |
| Returns | |
|---|---|
MediaDrmCallback.Response! |
The response data. |
| Throws | |
|---|---|
androidx.media3.exoplayer.drm.MediaDrmCallbackException |
If an error occurred executing the request. |