Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IEncryptionInfo

interface IEncryptionInfo
Extends com.amazon.apmf.IStandard EncryptionInfo holds the encryption related information for an encrypted MediaSample.

Methods

setInitializationVector()

void setInitializationVector(u8[] initializationVector)
Sets the initialization vector.

Parameters

initializationVector
u8[] — Required The initialization vector data.

setContentKeyId()

void setContentKeyId(ContentKeyId contentKeyId)
Sets the Media Key ID.

Parameters

contentKeyId
ContentKeyId — Required The media key id.

setSubSampleInfoList()

void setSubSampleInfoList(SubSampleInfo[] subSampleInfoList)
Sets the sub sample information list

Parameters

subSampleInfoList
SubSampleInfo[] — Required The list of subsample info

setEncryptionPattern()

void setEncryptionPattern(i32 encryptedBlocks, i32 skipBlocks)
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.

Parameters

encryptedBlocks
i32 — Required Number of encrypted blocks
skipBlocks
i32 — Required Number of skip blocks

setCryptoMode()

void setCryptoMode(CryptoMode cryptoMode)
Sets the crypto mode

Parameters

cryptoMode
CryptoMode — Required The crypto mode

setSessionId()

void setSessionId(string sessionId)
Sets the session id

Parameters

sessionId
string — Required The session id
Last modified on October 29, 2026