Sound cuts out when phone is left alone for a while

Hi all, please help. I have an app I created, but the phone keeps closing the app.

It is a simple link to website app that has a music player for a new online radio station. When you leave the phone after a while the music stops playing, then you need to unlock the phone, open the app, and press the play button again to get the music to play.

The topic "radio" / "streaming app" has been discussed intensively and extensively on all forums for many years. Search the forum / forums (AI2, Kodular etc.). The good thing is that there is a solution...

For example here: