Class LocalMediaDrmCallback

  • All Implemented Interfaces:
    MediaDrmCallback

    @Deprecated
    public final class LocalMediaDrmCallback
    extends Object
    implements MediaDrmCallback
    Deprecated.
    com.google.android.exoplayer2 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)
        Deprecated.
        Parameters:
        keyResponse - The fixed response for all key requests.