You can even stream video from a Windows PC, but only through iTunes. You can stream videos from any iPhone, iPad, iPod touch, or Mac. AirPlay allows you to wirelessly cast audio or video from your iPhone, iPad, or Mac to an Apple TV or an AirPlay 2-compatible smart TV, as long as your device is connected to the same Wi-Fi as the TV.
If you want to cast a video from your iPhone to your TV, or if you want to watch YouTube on a larger screen, AirPlay, Apple’s casting feature, will help you do that.