On Feb 16, 6:36 am, kavitha <[email protected]> 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 <[email protected]> wrote: > > > On Feb 15, 2:05 pm, kavitha <[email protected]> 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 [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%2bunsubs[email protected]> > > 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 [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

