In 1.6 I do the following to stream an mp3 shoutcast stream:
MediaPlayer mp = new MediaPlayer();
try {
mp.setDataSource("http://xxx.net/my.mp3");
mp.prepare();
}
catch(Exception ex)
{
alert(ex.getMessage());
}
This works great. However, I have to support phones running 1.5 as
well. When I build against the 1.5 libraries and run in a level 3
emulator, I get an exception on the prepare() call with the message:
Prepare failed.: status=0x1.
Is this supported in 1.5. Is there some other mechanism I have to use
that will work in both?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---