Thanks skink. I get audio stream in mp3 format.
So,Currently I write to a file and play it. Do I need to use any converter to convert mp3 to ogg format and then play? Thanks Kavitha On Tue, Feb 16, 2010 at 1:27 PM, skink <psk...@gmail.com> wrote: > > > On Feb 16, 6:36 am, kavitha <kavith...@gmail.com> wrote: > > Thanks skink,, > > > > There is very small gaps in between playing of 2 files.May be MediaPlayer > > takes milliseconds time to start in between. > > > > when listening to continous stream,you can make out,,You feel like music > is > > not continuous.Itz stucking sometime. > > > > In iphone,they have option of storing audio directly to stream and play > from > > it,so there is no need to start mediaplayer again and again. > > > > Unfortunately we don't have such option in Android. > > > > Thanks > > Kavitha > > > > > > > > On Tue, Feb 16, 2010 at 12:22 AM, skink <psk...@gmail.com> wrote: > > > > > On Feb 15, 2:05 pm, kavitha <kavith...@gmail.com> wrote: > > > > yes,i am aware about that > > > > > > If i download into files from continous music online link and then > play > > > from > > > > MediaPlayer,,,i notice some gap between switching over of 2 media > > > > players/files, > > > > > > so i thought of decoding audio into stream and play from audiotrack > > > > > > How to play files from media players without gap so that user feel > music > > > > flow is continuous? > > > > > > Thanks > > > > Kavitha > > > > > i see (hear) no gaps: > > > > > final MediaPlayer p2 = MediaPlayer.create(Test.this, > > > Uri.parse("file:///sdcard/02.ogg")); > > > final MediaPlayer p3 = MediaPlayer.create(Test.this, > > > Uri.parse("file:///sdcard/03.ogg")); > > > p2.setOnCompletionListener(new OnCompletionListener() { > > > public void onCompletion(MediaPlayer mp) { > > > p3.start(); > > > } > > > }); > > > p2.start(); > > > > > do you hear any gaps? > > > > > pskink > > > > > -- > > > 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> > <android-developers%2bunsubsÂcr...@googlegroups.com> > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > have you tried my code? > > did you use ogg files instead of mp3' > > ogg files are mauch better handled by MediaPlayer so i didn't have > *any* gap > > in fact, when using mp3 i noticed small delay between tracks > > pskink > > -- > 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