O'Reilly logo

iOS 5 Programming Cookbook by Vandad Nahavandipoor

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

9.0. Introduction

The AV Foundation framework in the iOS SDK allows developers to play and/or record audio and video with ease. In addition, the Media Player framework allows developers to play audio and video files.

Before you can run the code in this chapter, you must add the AVFoundation.framework and MediaPlayer.framework frameworks to your Xcode project. You can do this by following these steps:

  1. In Xcode, click on your project’s icon (a blue icon).

  2. Select the target to which you want to add the framework.

  3. On the top, select Build Phases.

  4. Select the + button in the bottom-left corner of the Link Binaries with Libraries box.

  5. Hold down the Command key and choose AVFoundation.framework and MediaPlayer.framework from the list.

  6. Select Add.

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