Fix failure to play through the end of wv videos

Properly compute the buffered and remaining time, also properly account
for the different old and new rates at adaptive switch and other
performance tuning related to b/5153227.

Includes Widevine release libs version 4.5.0.4936

Bug 5336777

Change-Id: I997ea353b7c320dca5e3f5c065395dca206d35a6
This commit is contained in:
Jeff Tinker
2011-10-13 10:06:42 -07:00
committed by Jeffrey Tinker
parent 1fee8fd75a
commit bcfe38dcb0
9 changed files with 21 additions and 41 deletions

View File

@@ -44,10 +44,10 @@ class WVDRMPluginAPI {
virtual bool RegisterDrmInfo(std::string &portal, std::string &dsPath) = 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 &assetIdStr,
const std::string &systemIdStr,
std::string &dsPath, const std::string &systemIdStr,
const std::string &assetIdStr,
const std::string &keyIdStr,
uint32_t *assetId, uint32_t *systemId,
uint32_t *systemId, uint32_t *assetId,
uint32_t *keyId) = 0;
virtual bool ProcessDrmInfo(std::string &assetPath, int playbackMode) = 0;
@@ -77,7 +77,7 @@ class WVDRMPluginAPI {
EventType_DeviceId,
EventType_StreamId,
EventType_UserData
};
};
enum EventDestination {
EventDestination_JavaAPI,