I am unable to find the solution to this problem. I just have to play an audio file and get the duration of that file. Sometimes it works fine but it shows error:
Be
Please make sure you don't have too many MediaPlayer objects active at once. See this for reference.