RDK Documentation (Open Sourced RDK Components)
AampClearKeyHelperFactory Class Reference

Helper Factory class to maintain Aamp DRM data. More...

#include <AampClearKeyHelper.h>

Inheritance diagram for AampClearKeyHelperFactory:
Inheritance graph
Collaboration diagram for AampClearKeyHelperFactory:
Collaboration graph

Public Member Functions

std::shared_ptr< AampDrmHelpercreateHelper (const struct DrmInfo &drmInfo, AampLogManager *logObj=NULL) const
 Build a helper class to support the identified DRM. More...
 
void appendSystemId (std::vector< std::string > &systemIds) const
 Adds the system IDs supported by the DRM to a vector Used by the GStreamer plugins to advertise the DRM upstream to the pipeline. More...
 
bool isDRM (const struct DrmInfo &drmInfo) const
 Determines if a helper class provides the identified DRM. More...
 
- Public Member Functions inherited from AampDrmHelperFactory
int getWeighting ()
 Get the weighting for this helper factory, which determines its priority. More...
 

Static Public Attributes

static const int CLEARKEY_WEIGHTING = DEFAULT_WEIGHTING * 2
 
- Static Public Attributes inherited from AampDrmHelperFactory
static const int DEFAULT_WEIGHTING = 50
 Default weighting of a helper factory. Nominal scale of 0 to DEFAULT_WEIGHTING * 2 Larger weightings have lower priority.
 

Additional Inherited Members

- Protected Member Functions inherited from AampDrmHelperFactory
 AampDrmHelperFactory (int weighting=DEFAULT_WEIGHTING)
 AampDrmHelperFactory constructor.
 
- Protected Attributes inherited from AampDrmHelperFactory
int mWeighting
 

yes

Helper Factory class to maintain Aamp DRM data.

Definition at line 84 of file AampClearKeyHelper.h.

Member Function Documentation

◆ createHelper()

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

Build a helper class to support the identified DRM.

Parameters
drmInfoDrmInfo built by the HLS manifest parser
Returns
the helper

Implements AampDrmHelperFactory.

Definition at line 145 of file AampClearKeyHelper.cpp.

◆ appendSystemId()

void AampClearKeyHelperFactory::appendSystemId ( std::vector< std::string > &  systemIds) const
virtual

Adds the system IDs supported by the DRM to a vector Used by the GStreamer plugins to advertise the DRM upstream to the pipeline.

Parameters
systemIdsthe vector to use

Implements AampDrmHelperFactory.

Definition at line 154 of file AampClearKeyHelper.cpp.

◆ isDRM()

bool AampClearKeyHelperFactory::isDRM ( const struct DrmInfo drmInfo) const
virtual

Determines if a helper class provides the identified DRM.

Parameters
drmInfoDrmInfo built by the HLS manifest parser
Returns
true if this helper provides that DRM

Implements AampDrmHelperFactory.

Definition at line 137 of file AampClearKeyHelper.cpp.


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