|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
19 #ifndef _AAMP_PLAYREADY_HELPER_H
20 #define _AAMP_PLAYREADY_HELPER_H
46 bool parsePssh(
const uint8_t* initData, uint32_t initDataLen);
54 void getKey(std::vector<uint8_t>& keyID)
const;
62 virtual const std::string&
friendlyName()
const override {
return FRIENDLY_NAME; };
65 PLAYREADY_DECODED_KEY_ID_LEN(16u), PLAYREADY_KEY_ID_LEN(37u), mPsshStr(),
73 std::string extrackKeyID();
74 std::string
findSubstr(std::string &data, std::string start, std::string end);
76 static const std::string PLAYREADY_OCDM_ID;
77 const size_t PLAYREADY_DECODED_KEY_ID_LEN;
78 const size_t PLAYREADY_KEY_ID_LEN;
79 const std::string FRIENDLY_NAME;
83 std::vector<uint8_t> mInitData;
84 std::vector<uint8_t> mKeyID;
85 std::string mContentMetaData;
103 #endif //_AAMP_PLAYREADY_HELPER_H
bool isHdcp22Required() const
Determine whether HDCP 2.2 protection is required to be active.
Implented DRM helper functionalities.
void generateLicenseRequest(const AampChallengeInfo &challengeInfo, AampLicenseRequest &licenseRequest) const
Generate the request details for the DRM license.
const std::string & getDrmMetaData() const
Returns the content specific DRM metadata.
Handles operations to support play ready DRM.
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...
std::shared_ptr< AampDrmHelper > createHelper(const struct DrmInfo &drmInfo, AampLogManager *logObj=NULL) const
Build a helper class to support the identified DRM.
void createInitData(std::vector< uint8_t > &initData) const
std::string mStrInitDataFormated
bool isDRM(const struct DrmInfo &drmInfo) const
Determines if a helper class provides the identified DRM.
Holds the data to get the License.
DRM information required to decrypt.
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.
Helper class to Maintain DRM data.
std::string extractMetaData()
Extract content meta data from given PSSH data. For example for content meta data,...
void setDrmMetaData(const std::string &metaData)
Sets the content specific DRM metadata.
void getKey(std::vector< uint8_t > &keyID) const
Get the key ID.
const std::string & ocdmSystemId() const
Returns the OCDM system ID of the helper.
std::string findSubstr(std::string &data, std::string start, std::string end)
find sub string inbetween string
virtual const std::string & friendlyName() const override
Gets the friendly display name of the DRM.
AampDRM helper to handle DRM operations.
virtual int getDrmCodecType() const
Returns the DRM codec type for the helper, used in trace.
Aamp challenge info to get the License.
Handles the operation for Play ready DRM operations.