Have you been using the app successfully for a while? I know that the likes of YouTube turns off if the screen blanks but other music players, eg; Amazon Music, N7 Player are not affected. You might need to contact the vendor of the app you are using.
Sorry I can’t be of more help.