RDK Documentation (Open Sourced RDK Components)
CASService Class Reference
Inheritance diagram for CASService:
Inheritance graph
Collaboration diagram for CASService:
Collaboration graph

Public Member Functions

 CASService (const EventEmitter &emit, const CASEnvironment &env, ICasSectionFilter *casSFInterface, ICasPipeline *casPipelineInterface)
 
bool initialize (bool management, const std::string &casOcdmId, PSIInfo *psiInfo)
 This API to initialize the CAS Serivce includes casManager and casHelper. More...
 
bool startStopDecrypt (const std::vector< uint16_t > &startPids, const std::vector< uint16_t > &stopPids)
 This API to start/stop the decryption of the audio/video content. More...
 
void updatePSI (const std::vector< uint8_t > &pat, const std::vector< uint8_t > &pmt, const std::vector< uint8_t > &cat)
 This API is updatePSI when PAT/PMT/CAT updates. More...
 
virtual void informStatus (const CASStatus &status) override
 This API is invoked by CAS plugin when it requires to sends the CAS Status. More...
 
void casPublicData (const std::vector< uint8_t > &data)
 This API is invoked by CAS plugin when it requires to push data. More...
 
void processSectionData (const uint32_t &filterId, const std::vector< uint8_t > &data)
 This API is invoked by CAS plugin when it requires to push data. More...
 
std::shared_ptr< CASHelper > getCasHelper ()
 This API is to get CASHelper. More...
 
bool isManagementSession () const
 This API is to check whether current one is for Managemnet or Tuning Session. More...
 

Private Attributes

std::shared_ptr< CASManager > casManager_
 
std::shared_ptr< CASHelper > casHelper_
 
EventEmitter emit_
 
PSIInfo psiInfo
 
bool bManagementSession_
 
std::string casOcdmId_
 
CASEnvironment env_
 
ICasSectionFilter * casSFInterface_
 
ICasPipeline * casPipelineInterface_
 

yes

Definition at line 44 of file casservice.h.

Member Function Documentation

◆ initialize()

bool CASService::initialize ( bool  management,
const std::string &  casOcdmId,
PSIInfo psiInfo 
)

This API to initialize the CAS Serivce includes casManager and casHelper.

Parameters
[in]managementflag to represents whether CAS created for Management
[in]casOcdmIdCAS openCDM Id
[in]psiInfoPSI info, more of PAT, PMT, CAT
Returns
Returns status of the operation true or false
Return values
trueon success, false upon any failure.

◆ startStopDecrypt()

bool CASService::startStopDecrypt ( const std::vector< uint16_t > &  startPids,
const std::vector< uint16_t > &  stopPids 
)

This API to start/stop the decryption of the audio/video content.

Parameters
[in]startPidsPids List to be started to play (Audio Video Pids)
[in]stopPidsPids List to be stopped which is currently playing (empty for the Channel tune, e.g. used upon Audio Language change)
Returns
Returns status of the operation true or false
Return values
trueon success, false upon any failure.

◆ updatePSI()

void CASService::updatePSI ( const std::vector< uint8_t > &  pat,
const std::vector< uint8_t > &  pmt,
const std::vector< uint8_t > &  cat 
)

This API is updatePSI when PAT/PMT/CAT updates.

Parameters
[in]patupdated PAT Buffer
[in]pmtupdated PMT Buffer
[in]catupdated CAT Buffer

◆ informStatus()

virtual void CASService::informStatus ( const CASStatus &  status)
overridevirtual

This API is invoked by CAS plugin when it requires to sends the CAS Status.

Parameters
[in]statusCAS Status which contains the status, errorno and message

◆ casPublicData()

void CASService::casPublicData ( const std::vector< uint8_t > &  data)

This API is invoked by CAS plugin when it requires to push data.

Parameters
[in]datadata to be send back as response asynchronously

◆ processSectionData()

void CASService::processSectionData ( const uint32_t &  filterId,
const std::vector< uint8_t > &  data 
)

This API is invoked by CAS plugin when it requires to push data.

Parameters
[in]filterIdfilter id for the corressponding section data received
[in]datasection data to be processed

◆ getCasHelper()

std::shared_ptr<CASHelper> CASService::getCasHelper ( )
inline

This API is to get CASHelper.

Returns
Returns the CAS Helper object

Definition at line 114 of file casservice.h.

◆ isManagementSession()

bool CASService::isManagementSession ( ) const

This API is to check whether current one is for Managemnet or Tuning Session.

Returns
Returns true or false whether it is a session for tuning or management
Return values
trueif a management session, false otherwise

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