That's a good question. At least, that's how it is for me.
Maybe it doesn't matter whether I stop the stream or it stops on its own. @Joejsanz would have to be able to comment on that.
Ok, but then the sound stops again after ~22 min and resume without any interruption?
That's right. Of course, there is a brief interruption when the stream breaks off.
When it's interrupted, it shouldn't trigger the MediaStop event. What it does on my device is interrupt at 22 minutes and then, after 3 seconds, it resumes playback on its own.
The link is to an Icecast or Shoutcast stream?
Exactly, why should it.
Yes, I just tested it with your extension and can confirm it (Android 16).
Btw, the sound doesn't stop if the screen is on while streaming. So it must be an issue with Doze/Foreground service and/or stream type.
Unfortunately, that doesn't work for me.
As I said, use AudioExoPlayer.
I have now tested AudioExoPlayer. After about 7 minutes, playback stops. When I turn the screen back on, the player continues to play. I tested with ExoPlayerTest2 (5).aia.
I'll post a working app tomorrow.
![]()
Hello, an initial test of your APK was successful. I tested it.

That block does not exist.

Thank you. Peter
What kind of aix did you use?

Does this procedure belong to AudioExoPlayer, or did you write it?
Thanks, I'll have to try that right away. Best regards, Peter
Yes, and please give feedback, as I have simplified (rewritten) the extension.
I have now integrated AudioExoPlayer and your Prevent Doze extension into my radio app. It works great. The stream runs without stopping. Unfortunately, it didn't work with JoeDevPlayer.
Thank you very much. Best regards, Peter

