I'm playing around with code for playing an MP3 stream, the code is as follows;
try
{
URL url = new URL("streamURL");
URLConnection con = url.openConnection();
con.connect();
con.getContent();
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(con.getURL().toString());
mp.prepare();
mp.start();
}
catch(Exception e)
{
}
Crude, but I'm only playing around at the minute. This code works fine in the emulator, but when running on my Galaxy S I find the error "Command PLAYER_INIT completed with an error or info -105", in the log file.
Has anyone come across this before, and is this something specific to the Galaxy ?
Many thanks in advance,
Neil.