From 5b1b8a93a07326f1cbc627f09e02988375189e0a Mon Sep 17 00:00:00 2001 From: James Dong Date: Wed, 25 May 2011 19:37:03 -0700 Subject: Send estimated bandwidth value as informational event when cache fetcher pauses o Application can make informed decision about the available network bandwidth when cache fetcher pauses. o Application can also adjust how frequently the bandwidth is estimated within a range from one second to one minute. Change-Id: I90068001343e79da1886de03c565537787e1580b --- media/libstagefright/include/NuCachedSource2.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'media/libstagefright/include/NuCachedSource2.h') diff --git a/media/libstagefright/include/NuCachedSource2.h b/media/libstagefright/include/NuCachedSource2.h index ed3e265..31fc0e5 100644 --- a/media/libstagefright/include/NuCachedSource2.h +++ b/media/libstagefright/include/NuCachedSource2.h @@ -47,8 +47,10 @@ struct NuCachedSource2 : public DataSource { size_t cachedSize(); size_t approxDataRemaining(status_t *finalStatus); + status_t setCacheStatCollectFreq(int32_t freqMs); void resumeFetchingIfNecessary(); + status_t getEstimatedBandwidthKbps(int32_t *kbps); protected: virtual ~NuCachedSource2(); -- cgit v1.1