OK, I found a kind of way out; not perfect though.

I create two MediaPlayer instances ("primary" and "secondary"); I also
create three files.
I have a thread which reads HTTP stream and buffers N seconds to first
file.
Second file goes to "secondary" player's prepare method.
Third file is played by "primary" player.
After playback is finished, both players and buffers are rotated.

This works almost well, but:
- there's an audible "gap" when switching players.
- I'd switch from files to memory buffers/streams, but I have no idea
how to make MediaPlayer play from "Stream" directly :( I have streams
of 16-32kbps and buffers of 5-10 seconds so memory is not an issue at
all.

-- 
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