From cba7b32d8f2c47632313f54118ed3733b4b02cc8 Mon Sep 17 00:00:00 2001 From: Kei Takahashi Date: Wed, 18 Jan 2012 17:10:19 +0900 Subject: 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 --- drm/libdrmframework/include/DrmManager.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drm/libdrmframework/include/DrmManager.h') diff --git a/drm/libdrmframework/include/DrmManager.h b/drm/libdrmframework/include/DrmManager.h index c9167d4..3942efe 100644 --- a/drm/libdrmframework/include/DrmManager.h +++ b/drm/libdrmframework/include/DrmManager.h @@ -116,6 +116,9 @@ public: DecryptHandle* openDecryptSession(int uniqueId, const char* uri, const char* mime); + DecryptHandle* openDecryptSession(int uniqueId, const DrmBuffer& buf, + const String8& mimeType); + status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle); status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, -- cgit v1.1