Add support to query through DrmInfoRequest::TYPE_REGISTRATION_INFO to check if a device is provisioned.

Includes Widevine lib version: 4.5.0.5781 AES BR_PYTHON2

Change-Id: Id5e673b97e3ec80532e2d7f42aae687adfecc765
related-to-bug: 5152997
This commit is contained in:
Edwin Wong
2012-01-25 17:13:57 -08:00
parent c3949b1967
commit beb9b7b603
12 changed files with 52 additions and 2 deletions

View File

@@ -28,6 +28,12 @@ class WVDRMPluginAPI {
PLAYBACK_INVALID
};
// provisionedFlags
enum {
DEVICE_IS_PROVISIONED,
DEVICE_IS_NOT_PROVISIONED
};
static const int PlaybackMode_Default = 0;
static const int PlaybackMode_Streaming = 1;
static const int PlaybackMode_Offline = 2;
@@ -42,6 +48,7 @@ class WVDRMPluginAPI {
virtual bool IsSupportedMediaType(const char *uri) = 0;
virtual bool RegisterDrmInfo(std::string &portal, std::string &dsPath) = 0;
virtual bool RegisterDrmInfo(std::string &portal, std::string &dsPath, uint32_t *status) = 0;
virtual bool UnregisterDrmInfo(std::string &portal, std::string &dsPath) = 0;
virtual bool AcquireDrmInfo(std::string &assetPath, WVCredentials &credentials,
std::string &dsPath, const std::string &systemIdStr,