You can stream music, movies, TV shows, photos and other content from a Mac, an iPhone or an iPad to your Apple TV. Both the device and Apple TV must be signed in to the same Apple Account, and both must have Home Sharing turned on.
Go to Settings on the Apple TV Home Screen.
Libraries from your shared devices appear, and you can view or play content from any library.