Your Mac will automatically go to sleep when you leave it alone long enough, but you can customize the sleep settings to your ...
You can turn on AirPlay to use on your Mac computer through the System Preferences app's "Displays" menu.