RDK Documentation (Open Sourced RDK Components)
AampDRMSessionManager.h File Reference

Header file for DRM session manager. More...

#include "aampdrmsessionfactory.h"
#include "AampDrmSession.h"
#include "AampDRMutils.h"
#include "priv_aamp.h"
#include "main_aamp.h"
#include <string>
#include <curl/curl.h>
#include "AampDrmHelper.h"
Include dependency graph for AampDRMSessionManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DrmSessionCacheInfo
 Drm Session Cache Information for keeping single DRM session always. More...
 
struct  DrmSessionDataInfo
 Drm Session Data Information for storing in a pool from parser. More...
 
struct  DrmSessionContext
 To store drmSession and keyId data. More...
 
struct  DrmSessionParams
 Holds data regarding drm session. More...
 
struct  KeyID
 Structure to hold, keyId and session creation time for keyId. More...
 
class  AampDRMSessionManager
 Controller for managing DRM sessions. More...
 
struct  writeCallbackData
 structure to hold DRM data to write More...
 

Macros

#define VIDEO_SESSION   0
 
#define AUDIO_SESSION   1
 

Typedefs

typedef struct DrmSessionCacheInfo DrmSessionCacheInfo
 
typedef struct DrmSessionDataInfo DrmSessionDataInfo
 
typedef struct writeCallbackData writeCallbackData
 

Enumerations

enum  SessionMgrState
 Enum to represent session manager state. Session manager would abort any createDrmSession request if in eSESSIONMGR_INACTIVE state. More...
 

yes

Header file for DRM session manager.

Definition in file AampDRMSessionManager.h.


Data Structure Documentation

◆ DrmSessionCacheInfo

struct DrmSessionCacheInfo

Drm Session Cache Information for keeping single DRM session always.

Definition at line 48 of file AampDRMSessionManager.h.

Collaboration diagram for DrmSessionCacheInfo:
Collaboration graph
Data Fields
pthread_t createDRMSessionThreadID

Thread Id for DrM Session thread

bool drmSessionThreadStarted

DRM Session start flag to identify the DRM Session thread running

◆ DrmSessionDataInfo

struct DrmSessionDataInfo

Drm Session Data Information for storing in a pool from parser.

Definition at line 58 of file AampDRMSessionManager.h.

Collaboration diagram for DrmSessionDataInfo:
Collaboration graph
Data Fields
struct DrmSessionParams * sessionData

DRM Session Data

bool isProcessedLicenseAcquire

Flag to avoid multiple acquire for a key

unsigned char * processedKeyId

Pointer to store last processed key Id

int processedKeyIdLen

Last processed key Id size

◆ writeCallbackData

struct writeCallbackData

structure to hold DRM data to write

Definition at line 366 of file AampDRMSessionManager.h.

Collaboration diagram for writeCallbackData:
Collaboration graph
Data Fields
DrmData * data
AampDRMSessionManager * mDRMSessionManager

Enumeration Type Documentation

◆ SessionMgrState

Enum to represent session manager state. Session manager would abort any createDrmSession request if in eSESSIONMGR_INACTIVE state.

Enumerator
eSESSIONMGR_INACTIVE 

DRM Session mgr is inactive

eSESSIONMGR_ACTIVE 

DRM session mgr is active

Definition at line 136 of file AampDRMSessionManager.h.