I have built a simple APK to play (looping) a sound (loop.ogg, 22 sec) from the assets. But if two of my devices (Samsung Galaxy S8, Note8, running Android 9) go to background (pressing the Home button) or I turn the screen of (standby, sleep mode), the sound begins to stutter after about 50-60 sec. This does not happen on my Xiaomi Redmi Note 5 (Android 9), OnePlus 6 (Android 10).
Can anyone provide an APK that plays this loop.ogg (or any other sound file) via ExoPlayer without this issue. I only want to know if it is basically possible to play a sound with ExoPlayer in standby (after screen is off) mode on each device.
sound file (loop.ogg, 141 KB): https://drive.google.com/file/d/18yYJz1PaA-PkHIqnYiQBXn1knqoqIPFJ/view?usp=sharing
ExoPlayer test APK (6 MB): https://drive.google.com/file/d/1Y356HYdWpt1q53-IuLMO8hhoMkfkCw-b/view?usp=sharing