Why does AirPlay turn off on my Mac?
Quick tip: On the Displays page, there’s a drop-down menu next to "AirPlay Display" which will automatically be turned to "Off." This doesn’t mean that the AirPlay feature is turned off, it simply means you’re not currently AirPlaying your screen.