How to set From and To Timestamp markers and play media between these two points of an audio file? I don't see listener API for MediaPlayer in Android. Wondering how I can go about achieving this?
My situation is like this: Break audio file into many such parts and let user interactively play/replay select portions of it as he wishes.
For instance, let's assume a small audio file is broken into 3 parts (A---B---C---D), namely, AB, BC, and CD. The user selects part BC and opts to play. The audio then plays starting from point B and stops when it reaches point C. The user may play again part BC or choose to move on to the next part.
While its easier to decide to figure out the starting point and use mediaPlayer.seekTo(int)
API, how is it that I can make the audio stop at the end point? What is the best way forward for this?
Your help is much appreciated.