As of iOS 13 and the iPhone 11 and 11 Pro, we can finally record video and listen to music.
While you’re grooving (ideally with headphones), open Apple’s camera app to Photo Mode. To shoot video, tap and hold the capture button. Your phone will record video and ambient audio like normal.
To give your thumb a rest, slide the button to the lock on the right for continuous recording.