Class CryptoInfo


  • @Deprecated
    public final class CryptoInfo
    extends Object
    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.
    Metadata describing the structure of an encrypted input sample.

    This class is a compatibility wrapper for MediaCodec.CryptoInfo.

    • Constructor Detail

      • CryptoInfo

        public CryptoInfo()
        Deprecated.
    • Method Detail

      • increaseClearDataFirstSubSampleBy

        public void increaseClearDataFirstSubSampleBy​(int count)
        Deprecated.
        Increases the number of clear data for the first sub sample by count.

        If count is 0, this method is a no-op. Otherwise, it adds count to numBytesOfClearData[0].

        If numBytesOfClearData is null (which is permitted), this method will instantiate it to a new int[1].

        Parameters:
        count - The number of bytes to be added to the first subSample of numBytesOfClearData.