summaryrefslogtreecommitdiffstats
path: root/drm/libdrmframework/include/IDrmManagerService.h
diff options
context:
space:
mode:
authorKei Takahashi <KeiA.Takahashi@jp.sony.com>2012-01-18 17:10:19 +0900
committerJean-Baptiste Queru <jbq@google.com>2012-05-23 14:44:06 -0700
commitcba7b32d8f2c47632313f54118ed3733b4b02cc8 (patch)
treeb24101645accdc9067e7970ef22f3d934bda8edf /drm/libdrmframework/include/IDrmManagerService.h
parentcf0bf78c28cf25c30c42c784c1dc5bc094e6035d (diff)
downloadframeworks_av-cba7b32d8f2c47632313f54118ed3733b4b02cc8.zip
frameworks_av-cba7b32d8f2c47632313f54118ed3733b4b02cc8.tar.gz
frameworks_av-cba7b32d8f2c47632313f54118ed3733b4b02cc8.tar.bz2
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
Diffstat (limited to 'drm/libdrmframework/include/IDrmManagerService.h')
-rw-r--r--drm/libdrmframework/include/IDrmManagerService.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drm/libdrmframework/include/IDrmManagerService.h b/drm/libdrmframework/include/IDrmManagerService.h
index a7d21c5..5b89c91 100644
--- a/drm/libdrmframework/include/IDrmManagerService.h
+++ b/drm/libdrmframework/include/IDrmManagerService.h
@@ -70,6 +70,7 @@ public:
GET_ALL_SUPPORT_INFO,
OPEN_DECRYPT_SESSION,
OPEN_DECRYPT_SESSION_FROM_URI,
+ OPEN_DECRYPT_SESSION_FOR_STREAMING,
CLOSE_DECRYPT_SESSION,
INITIALIZE_DECRYPT_UNIT,
DECRYPT,
@@ -146,6 +147,9 @@ public:
virtual DecryptHandle* openDecryptSession(
int uniqueId, const char* uri, const char* mime) = 0;
+ virtual DecryptHandle* openDecryptSession(
+ int uniqueId, const DrmBuffer& buf, const String8& mimeType) = 0;
+
virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) = 0;
virtual status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
@@ -232,6 +236,9 @@ public:
virtual DecryptHandle* openDecryptSession(
int uniqueId, const char* uri, const char* mime);
+ virtual DecryptHandle* openDecryptSession(
+ int uniqueId, const DrmBuffer& buf, const String8& mimeType);
+
virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
virtual status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,