In my android application I only play a looping sound with MediaPlayer. I'm trying to loop fluid, eliminating the time between the end of the track and the beginning of the next reading.
I tried with the function setLooping but there is a time between sounds.
I tried with setOnCompletionListener
function like this:
MP.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
@Override
public void onCompletion(MediaPlayer mp) {
MP.start();
}
});
However, there are still a few seconds between sounds.