Chapter     14

AirPlay

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.