Imported from the Apple Support Forums via the Wayback Machine 🔗
If you have an Apple Music subscription, then the Music app on Apple TV will access that streaming service, with your iCloud Music Library, when logged in with the matching Apple ID.
It will also load any music bought in the iTunes Store on that Apple ID account.
Apple TV will also AirPlay music from another device.
Apple TV will also play music files from another computer with iTunes through Home Sharing, if you do not have an Apple Music subscription. For Home Sharing, use the Computers app.