docs/doc/reference/com/google/android/exoplayer2/extractor/TrackOutput.CryptoData.html
Package com.google.android.exoplayer2.extractor
Enclosing interface:TrackOutput
public static final classTrackOutput.CryptoDataextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Holds data required to decrypt a sample.
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.
|
Constructors | Constructor | Description |
| --- | --- |
| CryptoData(@com.google.android.exoplayer2.C.CryptoMode int cryptoMode, byte[] encryptionKey, int encryptedBlocks, int clearBlocks) | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object obj) | |
| int | hashCode() | |
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public final @com.google.android.exoplayer2.C.CryptoMode int cryptoMode
The encryption mode used for the sample.
-
public final byte[] encryptionKey
The encryption key associated with the sample. Its contents must not be modified.
-
public final int encryptedBlocks
The number of encrypted blocks in the encryption pattern, 0 if pattern encryption does not apply.
-
public final int clearBlocks
The number of clear blocks in the encryption pattern, 0 if pattern encryption does not apply.
-
public CryptoData(@com.google.android.exoplayer2.C.CryptoMode int cryptoMode,
byte[] encryptionKey,
int encryptedBlocks,
int clearBlocks)
Parameters:cryptoMode - See cryptoMode.encryptionKey - See encryptionKey.encryptedBlocks - See encryptedBlocks.clearBlocks - See clearBlocks.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Overrides:equals in class Object
-
public int hashCode()
Overrides:hashCode in class Object