Class TrackOutput.CryptoData
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.TrackOutput.CryptoData
-
- Enclosing interface:
- TrackOutput
public static final class TrackOutput.CryptoData extends Object
Holds data required to decrypt a sample.
-
-
Field Summary
Fields Modifier and Type Field Description int
clearBlocks
The number of clear blocks in the encryption pattern, 0 if pattern encryption does not apply.@com.google.android.exoplayer2.C.CryptoMode int
cryptoMode
The encryption mode used for the sample.int
encryptedBlocks
The number of encrypted blocks in the encryption pattern, 0 if pattern encryption does not apply.byte[]
encryptionKey
The encryption key associated with the sample.
-
Constructor Summary
Constructors Constructor Description CryptoData(@com.google.android.exoplayer2.C.CryptoMode int cryptoMode, byte[] encryptionKey, int encryptedBlocks, int clearBlocks)
-
-
-
Field Detail
-
cryptoMode
public final @com.google.android.exoplayer2.C.CryptoMode int cryptoMode
The encryption mode used for the sample.
-
encryptionKey
public final byte[] encryptionKey
The encryption key associated with the sample. Its contents must not be modified.
-
encryptedBlocks
public final int encryptedBlocks
The number of encrypted blocks in the encryption pattern, 0 if pattern encryption does not apply.
-
clearBlocks
public final int clearBlocks
The number of clear blocks in the encryption pattern, 0 if pattern encryption does not apply.
-
-
Constructor Detail
-
CryptoData
public CryptoData(@com.google.android.exoplayer2.C.CryptoMode int cryptoMode, byte[] encryptionKey, int encryptedBlocks, int clearBlocks)
- Parameters:
cryptoMode
- SeecryptoMode
.encryptionKey
- SeeencryptionKey
.encryptedBlocks
- SeeencryptedBlocks
.clearBlocks
- SeeclearBlocks
.
-
-