But there is a way to do that with ay app, just by using this simple trick.
1) Open Safari browser on your device and go to YouTube.
2) Then search for the music video that you want to listen and click on play button.
3) Press the home button and the music will stop.
4) Swipe up from the bottom to display Control Center and tap the play button to continue playing the audio from the YouTube video.
5) Now you can listen to music and play games, open some apps. And if you want to browse the web, then try with another browser, for example, Google Chrome.
6) You can listen to music with the screen off. Press the sleep/wake button to turn your device off and after press it again and tap the play button to restart the audio. Now when you turn off your iPad or iPhone, the audio will keep playing.