OSDN Git Service

YouTube can now request custom cache/prefetch parameters and disconnect-at-highwater
authorAndreas Huber <andih@google.com>
Fri, 7 Oct 2011 20:40:45 +0000 (13:40 -0700)
committerAndreas Huber <andih@google.com>
Mon, 10 Oct 2011 19:41:21 +0000 (12:41 -0700)
commit49c59815369616b0fd5451ccabd377e8fe1dc3fa
tree90e8850990af78df26d7c0a1b7097747aa57fda2
parente87a2f05f39203dff8914b7612b1b2a709aeb75f
YouTube can now request custom cache/prefetch parameters and disconnect-at-highwater

through the use of pseudo http headers specified in the setDataSource call.

x-cache-config: -1/-1/0
x-disconnect-at-highwatermark: 1

turns off keep-alives and disconnects every time the cache is full (will attempt
to reconnect once it run below lowwater mark)

related-to-bug: 5433309

Change-Id: Id2f942fc956e0e156834cfcd6bb08dae6a29fae1
media/libstagefright/AwesomePlayer.cpp
media/libstagefright/NuCachedSource2.cpp
media/libstagefright/include/NuCachedSource2.h