Exoplayer about 10 or 15 minutes the application closes when the screen turns off

Unfortunately, there seems to be no solution to the problem with some devices when streaming sounds. We have discussed this problem extensively in all AI forums. Not even deactivating battery optimization will bring long-term success.