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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en