Chapter     14


AirPlay, introduced as part of iOS 4.3 and greatly enhanced in iOS 5.0, allows for the sharing of audio or visual information with compatible devices. These devices are most commonly the Apple TV for video and audio and AirPlay-enabled sound systems for music playback.

This chapter will cover working with AirPlay audio as well as handling mirroring and second-screen technology. Starting with iOS 5.0, AirPlay buttons are available on any video or audio playback on your app using MPMoviePlayerController or UIWebViews.

Apple has made AirPlay one of the easiest technologies to use on the iOS platform. Under most circumstances supporting AirPlay in your apps will require no additional code, and even in the most complex circumstances ...

Get Beginning iOS Social Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.