Class TrackEncryptionBox

  • @Deprecated
    public final class TrackEncryptionBox
    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.
    Encapsulates information parsed from a track encryption (tenc) box or sample group description (sgpd) box in an MP4 stream.
    • Field Detail

      • isEncrypted

        public final boolean isEncrypted
        Indicates the encryption state of the samples in the sample group.
      • schemeType

        public final String schemeType
        The protection scheme type, as defined by the 'schm' box, or null if unknown.
      • perSampleIvSize

        public final int perSampleIvSize
        The initialization vector size in bytes for the samples in the corresponding sample group.
      • defaultInitializationVector

        public final byte[] defaultInitializationVector
        If perSampleIvSize is 0, holds the default initialization vector as defined in the track encryption box or sample group description box. Null otherwise.