diff options
author | Kei Takahashi <KeiA.Takahashi@jp.sony.com> | 2012-01-18 17:10:19 +0900 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-05-23 14:44:06 -0700 |
commit | cba7b32d8f2c47632313f54118ed3733b4b02cc8 (patch) | |
tree | b24101645accdc9067e7970ef22f3d934bda8edf /include/drm | |
parent | cf0bf78c28cf25c30c42c784c1dc5bc094e6035d (diff) | |
download | frameworks_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 'include/drm')
-rw-r--r-- | include/drm/DrmManagerClient.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/drm/DrmManagerClient.h b/include/drm/DrmManagerClient.h index c47bbfb..a5c6992 100644 --- a/include/drm/DrmManagerClient.h +++ b/include/drm/DrmManagerClient.h @@ -83,6 +83,16 @@ public: sp<DecryptHandle> openDecryptSession(const char* uri, const char* mime); /** + * Open the decrypt session to decrypt the given protected content + * + * @param[in] buf Data to initiate decrypt session + * @param[in] mimeType Mime type of the protected content + * @return + * Handle for the decryption session + */ + sp<DecryptHandle> openDecryptSession(const DrmBuffer& buf, const String8& mimeType); + + /** * Close the decrypt session for the given handle * * @param[in] decryptHandle Handle for the decryption session |