RDK Documentation (Open Sourced RDK Components)
AampDrmHelperEngine Class Reference

Helper Engine for Aamp DRM operations. More...

#include <AampDrmHelper.h>

Collaboration diagram for AampDrmHelperEngine:
Collaboration graph

Public Member Functions

 AampDrmHelperEngine ()
 AampDrmHelperEngine constructor.
 
bool hasDRM (const struct DrmInfo &drmInfo) const
 Determines whether the helper engine has a DRM helper available for the specified DrmInfo. More...
 
std::shared_ptr< AampDrmHelpercreateHelper (const struct DrmInfo &drmInfo, AampLogManager *logObj=NULL) const
 Build a helper class to support the identified DRM. More...
 
void getSystemIds (std::vector< std::string > &ids) const
 Get the supported OCDM system IDs. More...
 
void registerFactory (AampDrmHelperFactory *factory)
 Register a Helper Factory. More...
 

Static Public Member Functions

static AampDrmHelperEnginegetInstance ()
 Get an instance of the DRM Helper Engine. More...
 

Private Attributes

std::vector< AampDrmHelperFactory * > factories
 

yes

Helper Engine for Aamp DRM operations.

Definition at line 299 of file AampDrmHelper.h.

Member Function Documentation

◆ hasDRM()

bool AampDrmHelperEngine::hasDRM ( const struct DrmInfo drmInfo) const

Determines whether the helper engine has a DRM helper available for the specified DrmInfo.

Parameters
systemIdthe UUID from the PSSH or manifest
drmInfoDrmInfo built by the HLS manifest parser
Returns
true if a DRM was found, false otherwise

Definition at line 308 of file AampDrmHelper.h.

◆ createHelper()

std::shared_ptr< AampDrmHelper > AampDrmHelperEngine::createHelper ( const struct DrmInfo drmInfo,
AampLogManager logObj = NULL 
) const

Build a helper class to support the identified DRM.

Parameters
drmInfoDrmInfo built by the HLS manifest parser
Returns
the helper

Definition at line 69 of file AampDrmHelperFactory.cpp.

◆ getSystemIds()

void AampDrmHelperEngine::getSystemIds ( std::vector< std::string > &  ids) const

Get the supported OCDM system IDs.

Parameters
idsvector to populate with supported IDs

Definition at line 57 of file AampDrmHelperFactory.cpp.

◆ getInstance()

AampDrmHelperEngine & AampDrmHelperEngine::getInstance ( )
static

Get an instance of the DRM Helper Engine.

Returns
DRM Helper Engine instance

Definition at line 37 of file AampDrmHelperFactory.cpp.

◆ registerFactory()

void AampDrmHelperEngine::registerFactory ( AampDrmHelperFactory factory)

Register a Helper Factory.

Parameters
factoryhelper factory instance to register

Definition at line 47 of file AampDrmHelperFactory.cpp.


The documentation for this class was generated from the following files: