diff options
author | James Dong <jdong@google.com> | 2011-05-25 19:37:03 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-05-31 15:23:25 -0700 |
commit | a9d0febdd0f0502ec4f29f77b742e11ceae8a30e (patch) | |
tree | 3b2e54ef6951b8adadd0640b5428f1aad5a18d83 /include | |
parent | da188fbe4b4d7b91e1440afe5a1279d0fd7a91eb (diff) | |
download | frameworks_base-a9d0febdd0f0502ec4f29f77b742e11ceae8a30e.zip frameworks_base-a9d0febdd0f0502ec4f29f77b742e11ceae8a30e.tar.gz frameworks_base-a9d0febdd0f0502ec4f29f77b742e11ceae8a30e.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/media/mediaplayer.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |