1. Play the YouTube video on Safari
2. Go to home screen (music will stop playing)
3. Go to lock screen
4. Pull up tab thinging with all the buttons and press play
5. Push down the tab thingy and unlock phone to play apps normally. Or just lock the screen after pressing play to have the screen locked while listening.