Class CryptoInfo

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

    This class is a compatibility wrapper for MediaCodec.CryptoInfo.

    • Constructor Detail

      • CryptoInfo

        public CryptoInfo()
    • Method Detail

      • increaseClearDataFirstSubSampleBy

        public void increaseClearDataFirstSubSampleBy​(int count)
        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].

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