Add a new API on DRM Framework for streaming

In case of DRM streaming, decrypt session can start just after
receiving the header, and it doesn't need to wait for the entire
content. However, current API of DRM framework only accepts file
handle or URI. With this new API, DRM session can start
without waiting for the entire content.

Changes are made by SEMC and Sony.

Change-Id: I74375fe127df636067f1c300ea91654ba3d1aa3c
This commit is contained in:
Kei Takahashi
2012-01-18 17:10:19 +09:00
committed by Jean-Baptiste Queru
parent cf0bf78c28
commit cba7b32d8f
13 changed files with 172 additions and 0 deletions

View File

@@ -272,6 +272,11 @@ sp<DecryptHandle> DrmManagerClientImpl::openDecryptSession(
return handle;
}
sp<DecryptHandle> DrmManagerClientImpl::openDecryptSession(
int uniqueId, const DrmBuffer& buf, const String8& mimeType) {
return getDrmManagerService()->openDecryptSession(uniqueId, buf, mimeType);
}
status_t DrmManagerClientImpl::closeDecryptSession(
int uniqueId, sp<DecryptHandle> &decryptHandle) {
status_t status = DRM_ERROR_UNKNOWN;