Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android
for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php <http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php>Thanks On Mon, Nov 30, 2009 at 4:27 PM, Nugman <[email protected]>wrote: > First of all the MediaPlayer does not support all music streaming > formats, as I understood. > I also struggeling with it. > For me it is working to play a mp3 file located on a server. Try this > first. > But it seems that m3u or aac is not supported at all. (Implement a > ErrorListener to see the error) > I hope that I am wrong in this case, but I cant get it to work, > either. > Maybe you can decrypt the m3u file yourself to get the mpeg itself. > Let me know how this works. > > Nevertheless the best thing is, to create a remote service (or a > thread) that prepares and plays the music. So it does not disturb the > main gui. > > Sorry that is all I know. > Greets Klaus > > > On 27 Nov., 11:25, Jens-Christian Larsen <[email protected]> > wrote: > > I am trying to make a very simple radio player for Android and I > > cannot get the audio streaming to work. In my latest attempt it plays > > for about 1 second and stops for some streams and it doesnt work at > > all for some other streams. Logcat doesn't give much useful > > information to me. > > I am testing on HTC Hero (Android 1.5). > > > > If I hook the completion and buffer events I see the audio gets a > > complete event but it keeps buffering. > > Is there anything wrong with the code below? > > Should I be able to stream the the audio streams below? > > Is there a complete example somewhere of a working radio streaming? > > > > Thanks for any and all suggestions. > > > > public class MyActivity extends Activity implements OnPreparedListener > > { > > MediaPlayer streamPlayer = new MediaPlayer(); > > > > public void onPrepared(MediaPlayer mp) { > > streamPlayer.start(); > > } > > > > @Override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > String path = "http://www.nch.com.au/acm/sample.aac"; > > // String path = "http://radio.bis.bg:8000/buddhabar"; > > // String path = " > http://kzsulive.stanford.edu/audio/kzsu-1-24.m3u"; > > try { > > Uri uri = Uri.parse(path); > > streamPlayer.reset(); > > streamPlayer.setDataSource(this, uri); > > > streamPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); > > streamPlayer.setOnPreparedListener(this); > > streamPlayer.prepareAsync(); > > } catch (Exception e) { > > e.printStackTrace(); > > } > > setContentView(R.layout.main); > > } > > > > } > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Thank you, Dilli Rao. M www.arijasoft.com -- 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 from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

