0

I am using vitamio to play music in a list, when I switch to another song, I call Mediaplayer.reset(), but there is a noise in between before playing the next song.

the code like this:

mPlayer.reset();  //noise playing for a second
try {
mPlayer.setDataSource(station.getUrl());
mPlayer.prepareAsync();
}
Toseef Khilji
  • 17,192
  • 12
  • 80
  • 121
John
  • 697
  • 1
  • 10
  • 33

1 Answers1

1

I suggest calling mPlayer.stop() first.

Vaiden
  • 15,728
  • 7
  • 61
  • 91