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 --- include/media/mediaplayer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/media/mediaplayer.h') diff --git a/include/media/mediaplayer.h b/include/media/mediaplayer.h index 50a378f..ea5a9d3 100644 --- a/include/media/mediaplayer.h +++ b/include/media/mediaplayer.h @@ -100,6 +100,9 @@ enum media_info_type { MEDIA_INFO_BUFFERING_START = 701, // MediaPlayer is resuming playback after filling buffers. MEDIA_INFO_BUFFERING_END = 702, + // Bandwidth in recent past + MEDIA_INFO_NETWORK_BANDWIDTH = 703, + // 8xx // Bad interleaving means that a media has been improperly interleaved or not // interleaved at all, e.g has all the video samples first then all the audio @@ -128,6 +131,9 @@ enum media_player_states { enum media_set_parameter_keys { KEY_PARAMETER_TIMED_TEXT_TRACK_INDEX = 1000, KEY_PARAMETER_TIMED_TEXT_ADD_OUT_OF_BAND_SOURCE = 1001, + + // Streaming/buffering parameters + KEY_PARAMETER_CACHE_STAT_COLLECT_FREQ_MS = 1100, }; // ---------------------------------------------------------------------------- // ref-counted object for callbacks -- cgit v1.1