|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
56 std::shared_ptr<HlsDrmBase> bridge =
nullptr;
62 mDrmSession = aampInstance->mDRMSessionManager->createDrmSession(drmHelper, event, aampInstance, streamType);
65 AAMPLOG_WARN(
"Failed to create Drm Session ");
79 AAMPLOG_WARN(
"created Drm Session ");
80 bridge = std::make_shared<AampHlsOcdmBridge>(mLogObj, mDrmSession);
Header file for DRM session manager.
Implented DRM helper functionalities.
static AampDrmHelperEngine & getInstance()
Get an instance of the DRM Helper Engine.
std::shared_ptr< HlsDrmBase > createSession(PrivateInstanceAAMP *aampInstance, const struct DrmInfo &drmInfo, MediaType streamType, AampLogManager *logObj=NULL)
createSession create session for DRM
DRM Session manager for HLS stream operations.
@ AAMP_TUNE_FAILURE_UNKNOWN
Handles OCDM bridge to validate DRM License.
void ProfileError(ProfilerBucketType type, int result=-1)
Marking error while executing a bucket.
DRM information required to decrypt.
static AampHlsDrmSessionManager & getInstance()
getInstance Get DRM instance Get an instance of the Hls DRM Session Manager
AAMPTuneFailure
AAMP playback error codes.
void ProfileBegin(ProfilerBucketType type)
Marking the beginning of a bucket.
Class representing the AAMP player's private instance, which is not exposed to outside world.
void SendErrorEvent(AAMPTuneFailure tuneFailure, const char *description=NULL, bool isRetryEnabled=true, int32_t secManagerClassCode=-1, int32_t secManagerReasonCode=-1, int32_t secClientBusinessStatus=-1)
Handles errors and sends events to application if required. For download failures,...
void ProfileEnd(ProfilerBucketType type)
Marking the end of a bucket.
bool hasDRM(const struct DrmInfo &drmInfo) const
Determines whether the helper engine has a DRM helper available for the specified DrmInfo.
bool isDrmSupported(const struct DrmInfo &drmInfo) const
Check stream is DRM supported.
bool DownloadsAreEnabled(void)
Check if downloads are enabled.
void DisableDownloads(void)
abort ongoing downloads and returns error on future downloads called while stopping fragment collecto...
@ PROFILE_BUCKET_LA_TOTAL
std::shared_ptr< AampDrmHelper > createHelper(const struct DrmInfo &drmInfo, AampLogManager *logObj=NULL) const
Build a helper class to support the identified DRM.