|
RDK Documentation (Open Sourced RDK Components)
|
19 #ifndef _AAMP_VERIMATRIX_DRM_HELPER_H
20 #define _AAMP_VERIMATRIX_DRM_HELPER_H
35 bool parsePssh(
const uint8_t* initData, uint32_t initDataLen);
41 void getKey(std::vector<uint8_t>& keyID)
const;
53 virtual const std::string&
friendlyName()
const override {
return FRIENDLY_NAME; };
56 CODEC_TYPE(1), VERIMATRIX_PSSH_DATA_POSITION(52),
57 mInitData(), mKeyID(), mContentMetadata()
63 static const std::string VERIMATRIX_OCDM_ID;
64 const std::string FRIENDLY_NAME;
66 const uint8_t VERIMATRIX_PSSH_DATA_POSITION;
68 std::vector<uint8_t> mInitData;
69 std::vector<uint8_t> mKeyID;
70 std::string mContentMetadata;
83 #endif //_AAMP_VERIMATRIX_DRM_HELPER_H
bool parsePssh(const uint8_t *initData, uint32_t initDataLen)
Parse the optional PSSH data.
bool isClearDecrypt() const
Determine if the DRM system needs to be in the clear or encrypted.
bool isDRM(const struct DrmInfo &drmInfo) const
Determines if a helper class provides the identified DRM.
Implented DRM helper functionalities.
bool isExternalLicense() const
Determines if the DRM itself fetches the license or if AAMP should use its own internal HTTP client t...
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 D...
void transformLicenseResponse(std::shared_ptr< DrmData > licenseResponse) const
Transform the license response from the server into the necessary format for OCDM.
virtual int getDrmCodecType() const
Returns the DRM codec type for the helper, used in trace.
const std::string & getDrmMetaData() const
Returns the content specific DRM metadata.
std::shared_ptr< AampDrmHelper > createHelper(const struct DrmInfo &drmInfo, AampLogManager *logObj=NULL) const
Build a helper class to support the identified DRM.
virtual const std::string & ocdmSystemId() const
Returns the OCDM system ID of the helper.
void createInitData(std::vector< uint8_t > &initData) const
Holds the data to get the License.
DRM information required to decrypt.
void generateLicenseRequest(const AampChallengeInfo &challengeInfo, AampLicenseRequest &licenseRequest) const
Generate the request details for the DRM license.
Helper class to Maintain DRM data.
virtual const std::string & friendlyName() const override
Gets the friendly display name of the DRM.
void setDrmMetaData(const std::string &metaData)
Sets the content specific DRM metadata.
AampDRM helper to handle DRM operations.
Aamp challenge info to get the License.
void getKey(std::vector< uint8_t > &keyID) const
Get the key ID.