Interface MediaDrmCallback

All Superinterfaces:
android.os.Parcelable

public interface MediaDrmCallback extends android.os.Parcelable
Performs MediaDrm key and provisioning requests.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    executeKeyRequest(UUID uuid, androidx.media3.exoplayer.drm.ExoMediaDrm.KeyRequest request)
    Executes a key request.
    byte[]
    executeProvisionRequest(UUID uuid, androidx.media3.exoplayer.drm.ExoMediaDrm.ProvisionRequest request)
    Executes a provisioning request.

    Methods inherited from interface android.os.Parcelable

    describeContents, writeToParcel
  • Method Details

    • executeProvisionRequest

      byte[] executeProvisionRequest(UUID uuid, androidx.media3.exoplayer.drm.ExoMediaDrm.ProvisionRequest request) throws Exception
      Executes a provisioning request.
      Parameters:
      uuid - The UUID of the content protection scheme.
      request - The request.
      Returns:
      The response data.
      Throws:
      Exception - If an error occurred executing the request.
    • executeKeyRequest

      byte[] executeKeyRequest(UUID uuid, androidx.media3.exoplayer.drm.ExoMediaDrm.KeyRequest request) throws Exception
      Executes a key request.
      Parameters:
      uuid - The UUID of the content protection scheme.
      request - The request.
      Returns:
      The response data.
      Throws:
      Exception - If an error occurred executing the request.