Android MediaPlayer Stream buffering

view full story

http://stackoverflow.com – I'm making an android app that can play audio streams from URLs. Activity contains a simple Play/Pause button and a Seekbar. I've managed to play the stream by running the media player as a service but now I want to achieve buffering. Buffering in the sense that, when the mediaplayer starts, I want the stream to be saved in a buffer or a temporary location. Also I want to show this buffered amount in the seekbar (probably as a secondary progress) & when the user drags the seekbar to any buffered point, the player should play that stream without any disruption. So, I'm seeking a decent (HowTos)