27Media Playback and Background Execution

Many applications on a mobile device need audio and video playback. In this chapter, you will learn how to use the most common audio and video playback routines the iOS SDK offers. In addition, we will look at background processes and multitasking.

Figure 27.1  MediaPlayer


Creating the MediaPlayer Application

Create an iPhone Window-based Application in Xcode. Name this project MediaPlayer.

MediaPlayer will have a very simple interface so that you can concentrate on the guts of media playback. The application will display two buttons that will initiate different types of audio playback, and it will also ...

Get iOS Programming: The Big Nerd Ranch Guide, Second Edition 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.