Thanks for the reply Mark Murphy. But MediaPlayer doesnt play from stream.I need to play from files.
when i play files,i notice some gap of mediaplayer noise in between while changing files. So any other option like i store everything in a stream and start playing from stream,,so that if i shift back also,i can track that point and resume playback. Please reply. Thanks Kavitha. On Wed, Feb 10, 2010 at 5:27 PM, Mark Murphy <mmur...@commonsware.com>wrote: > > > Hi All, > > > > How to play audio from a stream in android??? > > > > I will get input stream from an online link( like continuous FM). > > > > I need to cache the stream and play it. > > > > I searched a lot in sites,,,but didnt get.They show option of playing > from > > a > > stored file. > > > > There is no option to play from a stream. > > Use MediaPlayer (if it is a supported codec and uses RTSP or HTTP for > transport) or AudioTrack (if not). > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > Android App Developer Books: http://commonsware.com/books.html > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en