I'm running into the same issue. I've even tried the mp.prepareAsync() method but it fails when I call mp.start(). This is because it is trying to load the whole file into memory I'm guessing. Since a URL stream is usually 24/7 it will never prepare. The closest thing I've come to is this: http://whyandroid.com/android/92-android-tutorial-3-custom-media-streaming-with-mediaplayer.html The basic idea here is to play chunks of the file at a time as you download them. The problem with this tutorial is it points to a single file that has a file size and will eventually be all downloaded. I'm trying to play a 24/7 stream so I've been modifying it around but it still throws exceptions. I'll play with it some more tonight.
On Mar 21, 12:38 pm, sume <[email protected]> wrote: > The dev guide suggests this > > MediaPlayer mp = new MediaPlayer(); > mp.setDataSource(this, Uri.parse("http://wamu-1.streamguys.com:80")); > mp.prepare(); > mp.start(); > > I can't seem to get it working though. I'm getting > "java.io.IOException: Prepare failed.: status=0x1" > Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

