I was testing, creating code, but the device always stopped the music, so I decided to try the itoo extension and it works well, here I will leave an example:
I thought the question was whether the audio stream/music stops because Doze mode shuts down the CPU, internet, etc. So does the music continue to play on your test device after 7-10 minutes or longer? On my test devices the music plays until the battery gives up.
No, how long it takes for an audio stream to load/buffer depends not only on the speed of the internet, but also on the player used. Whether the stream breaks off after a while on Android 6+ devices has nothing to do with the internet speed, but rather with the correct implementation of a foreground service.
Is your extension up to date? I have made an app with it and when I try to install the apk file it shows „there was a problem with parsing“ and as I looked up, the problem for this error was often an outdated extension…my phone is currently running on the latest version of Android 12. Thx!