You can use AirPlay to:

  • Play videos or audio from your iOS or iPadOS device on Apple TV
  • Play music, podcasts, and radio stations on multiple AirPlay 2–enabled devices (such as HomePod or other speakers) in rooms throughout your house (see Use Apple TV to play audio throughout your home)
  • View the screen of your Mac, iOS device, or iPadOS device on Apple TV

To stream content from a Mac, iOS device, or iPadOS device to Apple TV, both Apple TV and the shared device may need to be connected to the same network. For more information, see the Apple Support article Use AirPlay to stream video or mirror your device’s screen.

Source: Apple.com