OSDN Git Service

Part of fix for double spins & faster startup
authorJeff Tinker <jtinker@google.com>
Fri, 1 Jun 2012 04:48:59 +0000 (21:48 -0700)
committerJeff Tinker <jtinker@google.com>
Fri, 1 Jun 2012 04:48:59 +0000 (21:48 -0700)
commitdadc0ddbfe309086801b479ddc91c55eeb2a9cbb
tree18baae93ed3d613c065c43267f9c47ac02a2325d
parent27d33134130379cc91d936cdc742700311901a9d
Part of fix for double spins & faster startup

This change alters the way that the media player
interacts with the Widevine adaptive streaming buffer
logic.  It eliminates the reliance on cached buffer
duration to determine pause/play states and instead
only generates buffering events when the widevine
library is not producing data (i.e. when it is
buffering).  This eliminates unnecessary pause and
rebuffer cycles, reducing startup time and the
frequency and duration of spinners.

Multi-repo commit, depends on related changes in vendor/widevine

Change-Id: I387db2decd83841775a8351bddf5a6381fe4104f
related-to-bug:6503294
related-to-bug:6463780
media/libstagefright/AwesomePlayer.cpp