|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
25 #ifndef AAMPVANILLADRMHELPER_H
26 #define AAMPVANILLADRMHELPER_H
40 const std::string EMPTY_STRING;
42 virtual const std::string&
ocdmSystemId()
const {
return EMPTY_STRING; };
44 virtual void createInitData(std::vector<uint8_t>& initData){};
46 virtual bool parsePssh(
const uint8_t* initData, uint32_t initDataLen){
return false; };
48 virtual bool isClearDecrypt() {
return true; };
54 virtual void getKey(std::vector<uint8_t>& keyID) { keyID.clear(); };
60 virtual const std::string&
friendlyName()
const override {
return FRIENDLY_NAME; }
66 virtual void getKey(std::vector<uint8_t>& keyID)
const {};
71 const std::string FRIENDLY_NAME;
Implented DRM helper functionalities.
virtual void getKey(std::vector< uint8_t > &keyID) const
Get the key ID.
virtual void setDrmMetaData(const std::string &metaData)
Sets the content specific DRM metadata.
virtual int getDrmCodecType() const
Returns the DRM codec type for the helper, used in trace.
virtual bool isExternalLicense() const
Determines if the DRM itself fetches the license or if AAMP should use its own internal HTTP client t...
Handles the operation foe Vanilla DRM.
Holds the data to get the License.
virtual bool parsePssh(const uint8_t *initData, uint32_t initDataLen)
Parse the optional PSSH data.
virtual const std::string & friendlyName() const override
Gets the friendly display name of the DRM.
DRM information required to decrypt.
virtual void createInitData(std::vector< uint8_t > &initData) const
virtual bool isClearDecrypt() const
Determine if the DRM system needs to be in the clear or encrypted.
virtual const std::string & ocdmSystemId() const
Returns the OCDM system ID of the helper.
virtual void generateLicenseRequest(const AampChallengeInfo &challengeInfo, AampLicenseRequest &licenseRequest) const
Generate the request details for the DRM license.
AampDRM helper to handle DRM operations.
Aamp challenge info to get the License.