Interface IEncryptionInfo
interface IEncryptionInfo
Extends com.amazon.apmf.IStandard
EncryptionInfo holds the encryption related information
for an encrypted MediaSample.
Methods
setInitializationVector()
Sets the initialization vector.voidsetInitializationVector(u8[]initializationVector)
Parameters
initializationVector
u8[] — Required
The initialization vector data.
setContentKeyId()
Sets the Media Key ID.voidsetContentKeyId(ContentKeyIdcontentKeyId)
Parameters
contentKeyId
ContentKeyId — Required
The media key id.
setSubSampleInfoList()
Sets the sub sample information listvoidsetSubSampleInfoList(SubSampleInfo[]subSampleInfoList)
Parameters
subSampleInfoList
SubSampleInfo[] — Required
The list of subsample info
setEncryptionPattern()
Sets the encryption pattern For MediaSample encrypted with pattern encryption, the encrypted data is only partially encrypted. The repeating pattern of encryptedBlocks and skipBlocks represents the encrypted data and clear data.voidsetEncryptionPattern(i32encryptedBlocks,i32skipBlocks)
Parameters
encryptedBlocks
i32 — Required
Number of encrypted blocks
skipBlocks
i32 — Required
Number of skip blocks
setCryptoMode()
Sets the crypto modevoidsetCryptoMode(CryptoModecryptoMode)
Parameters
cryptoMode
CryptoMode — Required
The crypto mode
setSessionId()
Sets the session idvoidsetSessionId(stringsessionId)
Parameters
sessionId
string — Required
The session id

