0

I want to make an audio player using just_audio, but when I am playing music from the internet there is some kind of glitch, and it automatically stops the player from playing music, I checked this issue with the emulator and physical device, but running smoothly in emulator with android 11 but not working fine with a physical device with android 12, I don't know what is the reason but it should run in the physical device too, and the code is same as from documentation still getting this issue, when I listen to song from the internet it just stopped after playing few songs in middle or while playing and then when I click play again then it starts to play again from same timestamp. one thing more it also seems like it is stopping exactly at where the buffered audio ends right now however when I play again it starts to buffer the music data again. please if anyone how to do it tell me how I can solve this issue. and in the terminal, it shows the logs from exoplayer same as when do stop or pause the player.

I tried to turn on the androidoffload setting from the constructor of AudionPlayer in just_audio, but haven't got the results I want

Manoj Agrawal
  • 429
  • 3
  • 10

0 Answers0