You can easily play music on your Xbox One in the background of games by downloading a music app from the Microsoft Store.
You can screen record on Windows 10 using the Game Bar. A third-party app like OBS Studio allows you to record your screen and computer audio.