Question

I am trying to stream an MP3-file with the following code in Android 2.3.3:

player = new MediaPlayer();  
String uri = "http://192.168.2.102:8080/sound/test.mp3";  
player.setDataSource(uri);  
player.prepare();  

for some reason every time I call prepare I get the following IOException: java.io.IOException: Prepare failed.: status=0x1 I tested the link directly in a browser and it works. I also added the Internet permission in the manifest.

Anyone know what I am doing wrong?

thanks for the help

Was it helpful?

Solution

It seems like the problem was that there was no ID3 tag attached to the MP3 file I was trying to stream, and Android doesn't like that...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top