Net requirements for air play

I want to purchase Apple TV for mirror image of my MacBook Pro and air play from iPhone and ipad. But I am confuse for some query. This feature can run only wifi or some uses of net. Please help.

Apple TV

Follow this Question