is here a way to store sound stream in buffer and play audio from buffer while playing in android?

view story

http://stackoverflow.com – I am working on music player which plays audio stream from URL. My problem is when I move seek bar position back the again it starts buffering but in reality it should be able to play old buffer data when I move seek bar to previous position. Suppose I have reached 50% of song length and if I move back say to 30% it again starts streaming. I do not know how to handle it. Again I am explaining: I want to store already played part and when I move back my media player should play song from downloaded or buffered part rather than start streaming from that position. how to optimize this code? pub (HowTos)