I know this question asked multiple times in this platform but none of them are solving my issue. I was trying to play a sound file in a loop but when a loop is complete first time there is a noticeable gap.
I have sound files in .M4A format.
I was trying to solve this for a week now and I have tried below solutions.
1) I tried using mediaPlayer.setLooping(true);
and mediaPlayer.setNextMediaPlayer(mediaPlayer1)
2) Tried different file formats OGG, WAV and MP3.
3) Tried different players Exoplayer and Oboe.
4) Tried this article https://medium.com/@viksaaskool/gappless-sound-loop-on-android-1ddeccc563de
5) Tried this article as well https://medium.com/@tonyowen/playing-local-r-raw-files-with-exoplayer2-1a62276ebeaa
Also, I already check StackOverflow Q&A.
1) Not able to achieve Gapless audio looping so far on Android
2) Gapless Playback with android MediaPlayer
3) How to loop a sound without gaps in Android?
4) Android: Gapless playback of a looped audio file in MediaPlayer
But from above none of them worked.
Any help will highly appreciate.
Thanks in Advance