Hold down the shutter button or volume button while using the Photo mode of the Camera app, then capture video until you release the button. Music played on the phone continued to play even when you recorded video, and that's remained one feature I've missed on iPhone for years.