RDK Documentation (Open Sourced RDK Components)
|
OCDM bridge to handle DRM key. More...
#include <AampHlsOcdmBridge.h>
Public Member Functions | |
AampHlsOcdmBridge (AampLogManager *logObj, AampDrmSession *aampDrmSession) | |
AampHlsOcdmBridge (const AampHlsOcdmBridge &)=delete | |
AampHlsOcdmBridge & | operator= (const AampHlsOcdmBridge &)=delete |
virtual DrmReturn | SetMetaData (class PrivateInstanceAAMP *aamp, void *metadata, int trackType, AampLogManager *logObj=NULL) override |
Set DRM specific meta-data. More... | |
virtual DrmReturn | SetDecryptInfo (PrivateInstanceAAMP *aamp, const struct DrmInfo *drmInfoi, AampLogManager *logObj=NULL) override |
Set information required for decryption. More... | |
virtual DrmReturn | Decrypt (ProfilerBucketType bucketType, void *encryptedDataPtr, size_t encryptedDataLen, int timeInMs=3000) override |
Decrypts an encrypted buffer. More... | |
virtual void | Release () override |
Release drm session. | |
virtual void | CancelKeyWait () override |
Cancel timed_wait operation drm_Decrypt. | |
virtual void | RestoreKeyState () override |
Restore key state post cleanup of audio/video TrackState in case DRM data is persisted. | |
virtual void | AcquireKey (class PrivateInstanceAAMP *aamp, void *metadata, int trackType, AampLogManager *logObj=NULL) override |
AcquireKey Function to get DRM Key. More... | |
virtual DRMState | GetState () override |
GetState Function to get current DRM state. More... | |
Public Member Functions inherited from HlsDrmBase | |
virtual | ~HlsDrmBase () |
HlsDrmBase Destructor. | |
Private Attributes | |
DRMState | m_drmState |
const DrmInfo * | m_drmInfo |
AampDrmSession * | m_drmSession |
PrivateInstanceAAMP * | m_aampInstance |
pthread_mutex_t | m_Mutex |
AampLogManager * | mLogObj |
OCDM bridge to handle DRM key.
Definition at line 39 of file AampHlsOcdmBridge.h.
|
inlineoverridevirtual |
Set DRM specific meta-data.
aamp | AAMP instance to be associated with this decryptor |
metadata | DRM specific metadata |
0 | on success |
Implements HlsDrmBase.
Definition at line 59 of file AampHlsOcdmBridge.h.
|
overridevirtual |
Set information required for decryption.
aamp | AAMP instance to be associated with this decryptor |
drmInfo | Drm information |
eDRM_SUCCESS | on success |
Implements HlsDrmBase.
Definition at line 50 of file AampHlsOcdmBridge.cpp.
|
overridevirtual |
Decrypts an encrypted buffer.
bucketType | Type of bucket for profiling |
encryptedDataPtr | pointer to encyrpted payload |
encryptedDataLen | length in bytes of data pointed to by encryptedDataPtr |
timeInMs | wait time |
eDRM_SUCCESS | on success |
Implements HlsDrmBase.
Definition at line 70 of file AampHlsOcdmBridge.cpp.
|
inlineoverridevirtual |
AcquireKey Function to get DRM Key.
Implements HlsDrmBase.
Definition at line 71 of file AampHlsOcdmBridge.h.
|
inlineoverridevirtual |
GetState Function to get current DRM state.
Implements HlsDrmBase.
Definition at line 73 of file AampHlsOcdmBridge.h.