I've used something like this:

import android.media.MediaPlayer;
...
MediaPlayer player = new MediaPlayer();

        if ( player != null ) {
            player.setOnPreparedListener(this);
            try {
                player.setDataSource("http://blabla.com/
yourstream.mp3");
                player.prepare();
                player.start();
            }
            catch ( Exception e ) {
            }
        }

Concerning these gaps in playback: I've experienced this behaviour
also on other platforms (like Blackberry, Symbian)
and most of the time the cause was the MediaPlayer implementation
being not able to perform better. On Android for example
I think I had these problems only with 1.5 ! With switching to 1.6 the
playback worked without these gaps.

Hope that helps.
Ole

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