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:
committed by
Jeffrey Tinker
parent
1fee8fd75a
commit
bcfe38dcb0
@@ -1038,16 +1038,16 @@ CLIENT_API WVStatus
|
||||
WV_Info_CurrentBandwidth(WVSession *session, unsigned long *bandwidth);
|
||||
|
||||
//
|
||||
// METHOD: WV_Info_BytesBuffered
|
||||
// METHOD: WV_Info_TimeBuffered
|
||||
//
|
||||
// This method retrieves information about the adaptive streaming buffer level
|
||||
// for the media stream that was setup on the specified session.
|
||||
// This method returns an approximate duration for the media buffered
|
||||
// inside the Widevine adaptive client.
|
||||
//
|
||||
// Parameters:
|
||||
// [in] session - The session to query
|
||||
//
|
||||
// [out] bytesBuffered - The number of bytes currently queued in the adaptive
|
||||
// streaming buffer
|
||||
// [out] secondsBuffered - Duration of the media currently
|
||||
// buffered, in seconds
|
||||
//
|
||||
// Returns:
|
||||
// WV_Status_OK on success, otherwise one of the WVStatus values
|
||||
@@ -1055,7 +1055,7 @@ WV_Info_CurrentBandwidth(WVSession *session, unsigned long *bandwidth);
|
||||
//
|
||||
|
||||
CLIENT_API WVStatus
|
||||
WV_Info_BytesBuffered(WVSession *session, unsigned long long *bytesBuffered);
|
||||
WV_Info_TimeBuffered(WVSession *session, float *secondsBuffered);
|
||||
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user