Class LocalMediaDrmCallback

  • All Implemented Interfaces:

    public final class LocalMediaDrmCallback
    extends Object
    implements MediaDrmCallback
    Deprecated. is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    A MediaDrmCallback that provides a fixed response to key requests. Provisioning is not supported. This implementation is primarily useful for providing locally stored keys to decrypt ClearKey protected content. It is not suitable for use with Widevine or PlayReady protected content.
    • Constructor Detail

      • LocalMediaDrmCallback

        public LocalMediaDrmCallback​(byte[] keyResponse)
        keyResponse - The fixed response for all key requests.