i have the following problem:
when i try to play a sound over and over again, it sometimes (actually most times) is not played.
the documentation says that one should use the media player in the following sequence if a sound should be played several times:
mediaPlayer.start()
mediaPlayer.stop()
mediaPlayer.reset()
mediaPlayer.prepare()
mediaPlayer.start()
...
is this the wrong approach? is there a more performant way to reset the pointer in the sound sample so that it can be played from the beginning?
i tried using mediaPlayer.seekTo(0); but it didn't help.
when i try to play a sound over and over again, it sometimes (actually most times) is not played.
the documentation says that one should use the media player in the following sequence if a sound should be played several times:
mediaPlayer.start()
mediaPlayer.stop()
mediaPlayer.reset()
mediaPlayer.prepare()
mediaPlayer.start()
...
is this the wrong approach? is there a more performant way to reset the pointer in the sound sample so that it can be played from the beginning?
i tried using mediaPlayer.seekTo(0); but it didn't help.