Seeking on a http progressive download
<p>I am trying to implement the progressive download of audio files in my android project. I am able to progressively play the audio by reading chunks of data and passing on to the media player. So, the media player does play the audio with simultaneous buffering, but the problem lies with seeking.</p>

<p>When I seek to a position where the buffering has not yet completed, then the client requests the server for a range of bytes. Once I receive the range of data, I store it in a file and  pass the file descriptor to the mediaplayer, but the mediaplayer is unable to play the audio since the header information is missing.</p>

<p>Is there any better way to do this? Any queue buffering so that the header information is still retained while loading the content at a particular position? Or any other way to handle seeking on a progressive download? </p>

<p>Note that I cannot pass the uri of the audio files to the media player for security reasons.</p>
