Sunday 15 September 2013

android - MediaPlayer onCompletion is not being called accurately -


In my app, I have created an audio player (WAV files only) using APIs but end up calling player Do not give the listener all the time Sometimes this gives callback, but not all the time, I am processing some audio on VAV files, such as insertion and overwriting.

Is it because someone is missing in the audio player? Why not give a callback when playback is complete?

Make sure the file's header is set correctly if something in the header is Callback can be unavailable from to

If the intermediary player is running a .wav file, then it may be correctly Can be jerked, but will be jerking. So when playback is complete, then the total duration of the file and onCompletion will be a differecnce of 0-1000 ms, respectively. So if such a situation comes then you feel that whatever else you wanted to do according to the resolution, you should do it. There is a little trick to getting the ending .

I had to face the same problem while running a .wav file with the media player. This is not a good way to solve this problem, but even when I was in the same situation, I still solved this kind of problem. Hope this will help you in some ways also.

No comments:

Post a Comment