RDK Documentation (Open Sourced RDK Components)
AampDrmHelperFactory Class Referenceabstract

Helper class to Maintain DRM data. More...

#include <AampDrmHelper.h>

Inheritance diagram for AampDrmHelperFactory:
Inheritance graph
Collaboration diagram for AampDrmHelperFactory:
Collaboration graph

Public Member Functions

virtual bool isDRM (const struct DrmInfo &drmInfo) const =0
 Determines if a helper class provides the identified DRM. More...
 
virtual std::shared_ptr< AampDrmHelpercreateHelper (const struct DrmInfo &drmInfo, AampLogManager *logObj=NULL) const =0
 Build a helper class to support the identified DRM. More...
 
virtual void appendSystemId (std::vector< std::string > &systemIds) const =0
 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...
 
int getWeighting ()
 Get the weighting for this helper factory, which determines its priority. More...
 

Static Public Attributes

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.
 

Protected Member Functions

 AampDrmHelperFactory (int weighting=DEFAULT_WEIGHTING)
 AampDrmHelperFactory constructor.
 

Protected Attributes

int mWeighting
 

yes

Helper class to Maintain DRM data.

Definition at line 250 of file AampDrmHelper.h.

Member Function Documentation

◆ isDRM()

virtual bool AampDrmHelperFactory::isDRM ( const struct DrmInfo drmInfo) const
pure 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

Implemented in AampWidevineDrmHelperFactory, AampPlayReadyHelperFactory, AampVgdrmHelperFactory, AampClearKeyHelperFactory, and AampVerimatrixHelperFactory.

◆ createHelper()

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

Build a helper class to support the identified DRM.

Parameters
drmInfoDrmInfo built by the HLS manifest parser
Returns
the helper

Implemented in AampWidevineDrmHelperFactory, AampPlayReadyHelperFactory, AampVgdrmHelperFactory, AampClearKeyHelperFactory, and AampVerimatrixHelperFactory.

◆ appendSystemId()

virtual void AampDrmHelperFactory::appendSystemId ( std::vector< std::string > &  systemIds) const
pure 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

Implemented in AampWidevineDrmHelperFactory, AampPlayReadyHelperFactory, AampVgdrmHelperFactory, AampClearKeyHelperFactory, and AampVerimatrixHelperFactory.

◆ getWeighting()

int AampDrmHelperFactory::getWeighting ( )
inline

Get the weighting for this helper factory, which determines its priority.

Returns
weighting value

Definition at line 285 of file AampDrmHelper.h.


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