Hi,

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.

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.

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?

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

Thanks,
Sun

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to