26 #ifndef OpenCDMSession_h
27 #define OpenCDMSession_h
42 pthread_mutex_t decryptMutex;
46 media::OpenCdm* m_pOpencdm;
47 media::OpenCdm* m_pOpencdmDecrypt;
49 void initAampDRMSession();
56 void generateAampDRMSession(
const uint8_t *f_pbInitData,
57 uint32_t f_cbInitData, std::string &customData);
58 DrmData * aampGenerateKeyRequest(
string& destinationURL, uint32_t timeout);
59 int aampDRMProcessKey(
DrmData* key, uint32_t timeout);
60 int decrypt(
const uint8_t *f_pbIV, uint32_t f_cbIV,
61 const uint8_t *payloadData, uint32_t payloadDataSize, uint8_t **ppOpaqueData);
63 void clearDecryptContext();