Is there a way to take videos on iOS, with music playing?
You can't currently record a video while playing music using the native app.

Good news is that you can use 3rd party apps to do it instead, here is an example.

Cheers