Report key request message type for unprefixed EME

bug: 19771299
Change-Id: I0cc790a2c91a9b515e11b36c0a2c81e64c855fe7
This commit is contained in:
Jeff Tinker 2015-03-16 13:04:40 -07:00
parent 221765d768
commit 06a8cd6d19
1 changed files with 11 additions and 1 deletions

View File

@ -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