I was mistaken in where the error was occurring. The next line was: mp.prepareAsync();
and this is actually where it was failing with the Error (-1, 0). I changed it to mp.prepare() and caught an IOException that said "Prepare failed". As I mentioned below, the server side starts sending the audio so it at least opened up a socket. Any advice? On Feb 17, 11:57 am, whataboutbob <[email protected]> wrote: > I would like to receive an audio stream from an application running on > a PC using the 802.11 connection. I tried the following and received > Error (-1, 0) from the MediaPlayer: > > mp = new MediaPlayer(); > mp.setAudioStreamType(AudioManager.STREAM_MUSIC); > mp.setDataSource("http://10.1.201.114:11224"); > > The MediaPlayer does connect to the application and the application > starts sending audio but nothing happens on the G1. Is the > setDataSource call above correct? If so, how do I set things like > sample rate, etc? If not, any help would be great! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

