This will stop the video playback on the iPad and instead show the video on the Apple TV.
Click the AirPlay button and select Apple TV. So lets say for example, you’re using your iPad to watch a video on YouTube and decide you’d rather watch it on your Apple TV. It’s also really easy to simply send a video you are watching on your iOS device straight to your TV.
The above method of streaming content from your Mac or iOS device is not the only available way to use AirPlay.