Class TrackEncryptionBox
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.mp4.TrackEncryptionBox
-
@Deprecated public final class TrackEncryptionBox 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.Encapsulates information parsed from a track encryption (tenc) box or sample group description (sgpd) box in an MP4 stream.
-
-
Field Summary
Fields Modifier and Type Field Description TrackOutput.CryptoData
cryptoData
Deprecated.ATrackOutput.CryptoData
instance containing the encryption information from thisTrackEncryptionBox
.byte[]
defaultInitializationVector
Deprecated.IfperSampleIvSize
is 0, holds the default initialization vector as defined in the track encryption box or sample group description box.boolean
isEncrypted
Deprecated.Indicates the encryption state of the samples in the sample group.int
perSampleIvSize
Deprecated.The initialization vector size in bytes for the samples in the corresponding sample group.String
schemeType
Deprecated.The protection scheme type, as defined by the 'schm' box, or null if unknown.
-
Constructor Summary
Constructors Constructor Description TrackEncryptionBox(boolean isEncrypted, String schemeType, int perSampleIvSize, byte[] keyId, int defaultEncryptedBlocks, int defaultClearBlocks, byte[] defaultInitializationVector)
Deprecated.
-
-
-
Field Detail
-
isEncrypted
public final boolean isEncrypted
Deprecated.Indicates the encryption state of the samples in the sample group.
-
schemeType
@Nullable public final String schemeType
Deprecated.The protection scheme type, as defined by the 'schm' box, or null if unknown.
-
cryptoData
public final TrackOutput.CryptoData cryptoData
Deprecated.ATrackOutput.CryptoData
instance containing the encryption information from thisTrackEncryptionBox
.
-
perSampleIvSize
public final int perSampleIvSize
Deprecated.The initialization vector size in bytes for the samples in the corresponding sample group.
-
defaultInitializationVector
@Nullable public final byte[] defaultInitializationVector
Deprecated.IfperSampleIvSize
is 0, holds the default initialization vector as defined in the track encryption box or sample group description box. Null otherwise.
-
-
Constructor Detail
-
TrackEncryptionBox
public TrackEncryptionBox(boolean isEncrypted, @Nullable String schemeType, int perSampleIvSize, byte[] keyId, int defaultEncryptedBlocks, int defaultClearBlocks, @Nullable byte[] defaultInitializationVector)
Deprecated.- Parameters:
isEncrypted
- SeeisEncrypted
.schemeType
- SeeschemeType
.perSampleIvSize
- SeeperSampleIvSize
.keyId
- SeeTrackOutput.CryptoData.encryptionKey
.defaultEncryptedBlocks
- SeeTrackOutput.CryptoData.encryptedBlocks
.defaultClearBlocks
- SeeTrackOutput.CryptoData.clearBlocks
.defaultInitializationVector
- SeedefaultInitializationVector
.
-
-