How do I record a video and play music at the same time?

How do I record a video and play music at the same time?

https://www.youtube.com/watch?v=qUMAnvZ6myQ