diff options
author | Jeff Tinker <jtinker@google.com> | 2015-03-16 13:04:40 -0700 |
---|---|---|
committer | Jeff Tinker <jtinker@google.com> | 2015-03-16 14:18:39 -0700 |
commit | 06a8cd6d19a20843d137f7e65f4c81da685c291e (patch) | |
tree | 1375847c370ced63a82426f194ca2f7aed9af7d7 /include/media/drm | |
parent | 221765d768e99f0502bf7f82c1f3a0bec7a0115b (diff) | |
download | frameworks_native-06a8cd6d19a20843d137f7e65f4c81da685c291e.zip frameworks_native-06a8cd6d19a20843d137f7e65f4c81da685c291e.tar.gz frameworks_native-06a8cd6d19a20843d137f7e65f4c81da685c291e.tar.bz2 |
Report key request message type for unprefixed EME
bug: 19771299
Change-Id: I0cc790a2c91a9b515e11b36c0a2c81e64c855fe7
Diffstat (limited to 'include/media/drm')
-rw-r--r-- | include/media/drm/DrmAPI.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/media/drm/DrmAPI.h b/include/media/drm/DrmAPI.h index 6e84ab4..b01476a 100644 --- a/include/media/drm/DrmAPI.h +++ b/include/media/drm/DrmAPI.h @@ -94,6 +94,15 @@ namespace android { kKeyType_Release }; + // Enumerate KeyRequestTypes to allow an app to determine the + // type of a key request returned from getKeyRequest. + enum KeyRequestType { + kKeyRequestType_Unknown, + kKeyRequestType_Initial, + kKeyRequestType_Renewal, + kKeyRequestType_Release + }; + DrmPlugin() {} virtual ~DrmPlugin() {} @@ -136,7 +145,8 @@ namespace android { Vector<uint8_t> const &initData, String8 const &mimeType, KeyType keyType, KeyedVector<String8, String8> const &optionalParameters, - Vector<uint8_t> &request, String8 &defaultUrl) = 0; + Vector<uint8_t> &request, String8 &defaultUrl, + KeyRequestType *keyRequestType) = 0; // // After a key response is received by the app, it is provided to the |