public final class CryptoInfo extends Object
MediaCodec.CryptoInfo
.Modifier and Type | Field and Description |
---|---|
byte[] |
iv |
byte[] |
key |
int |
mode |
int[] |
numBytesOfClearData |
int[] |
numBytesOfEncryptedData |
int |
numSubSamples |
Constructor and Description |
---|
CryptoInfo() |
Modifier and Type | Method and Description |
---|---|
MediaCodec.CryptoInfo |
getFrameworkCryptoInfoV16()
Returns an equivalent
MediaCodec.CryptoInfo instance. |
void |
set(int numSubSamples,
int[] numBytesOfClearData,
int[] numBytesOfEncryptedData,
byte[] key,
byte[] iv,
int mode) |
void |
setFromExtractorV16(MediaExtractor extractor)
|
public byte[] iv
MediaCodec.CryptoInfo.iv
public byte[] key
MediaCodec.CryptoInfo.key
public int mode
MediaCodec.CryptoInfo.mode
public int[] numBytesOfClearData
public int[] numBytesOfEncryptedData
public int numSubSamples
MediaCodec.CryptoInfo.numSubSamples
public void set(int numSubSamples, int[] numBytesOfClearData, int[] numBytesOfEncryptedData, byte[] key, byte[] iv, int mode)
public void setFromExtractorV16(MediaExtractor extractor)
extractor
- The extractor from which to retrieve the crypto information.public MediaCodec.CryptoInfo getFrameworkCryptoInfoV16()
MediaCodec.CryptoInfo
instance.
Successive calls to this method on a single CryptoInfo
will return the same instance.
Changes to the CryptoInfo
will be reflected in the returned object. The return object
should not be modified directly.
MediaCodec.CryptoInfo
instance.