Exo Player Stopped after 10 mins with Taifun Battery Optimization

When i am streaming with exo player with taifun battery optimization and my phone is locked it stopped player after 10 mins or running on another app when the music app is running but if i didn’t lock my phone the app keeps streaming. What can i do so that it keeps playing when i lock my phone or my phone screen go off or running on another app

There doesn’t seem to be a solution to this problem with the version of ExoPlayer currently used by Kodular. I have already pointed this out several times: