RDK Documentation (Open Sourced RDK Components)
|
Helper Engine for Aamp DRM operations. More...
#include <AampDrmHelper.h>
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< AampDrmHelper > | createHelper (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 AampDrmHelperEngine & | getInstance () |
Get an instance of the DRM Helper Engine. More... | |
Private Attributes | |
std::vector< AampDrmHelperFactory * > | factories |
Helper Engine for Aamp DRM operations.
Definition at line 299 of file AampDrmHelper.h.
bool AampDrmHelperEngine::hasDRM | ( | const struct DrmInfo & | drmInfo | ) | const |
Determines whether the helper engine has a DRM helper available for the specified DrmInfo.
systemId | the UUID from the PSSH or manifest |
drmInfo | DrmInfo built by the HLS manifest parser |
Definition at line 308 of file AampDrmHelper.h.
std::shared_ptr< AampDrmHelper > AampDrmHelperEngine::createHelper | ( | const struct DrmInfo & | drmInfo, |
AampLogManager * | logObj = NULL |
||
) | const |
Build a helper class to support the identified DRM.
drmInfo | DrmInfo built by the HLS manifest parser |
Definition at line 69 of file AampDrmHelperFactory.cpp.
void AampDrmHelperEngine::getSystemIds | ( | std::vector< std::string > & | ids | ) | const |
Get the supported OCDM system IDs.
ids | vector to populate with supported IDs |
Definition at line 57 of file AampDrmHelperFactory.cpp.
|
static |
Get an instance of the DRM Helper Engine.
Definition at line 37 of file AampDrmHelperFactory.cpp.
void AampDrmHelperEngine::registerFactory | ( | AampDrmHelperFactory * | factory | ) |
Register a Helper Factory.
factory | helper factory instance to register |
Definition at line 47 of file AampDrmHelperFactory.cpp.