O'Reilly logo

iPhone Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

20. Media Playback and Background Execution

Many applications on a mobile device have a need for audio and video playback. The iPhone SDK offers a few options for audio and video playback routines, and, in this chapter, you will learn how to use the most common ones.

Creating the MediaPlayer Application

Create a Window-Based Application in Xcode. Name this project MediaPlayer.

This application 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 display a movie. The object diagram for this application is shown in (Figure 20.1).

Figure 20.1. MediaPlayer

Figure 20.2. MediaPlayer object diagram ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required