Chapter 29. Music Library

An iOS device can be used for the same purpose as the original iPod — to hold and play music and podcasts. These items constitute the device’s music library; the user can play them with the Music app (formerly called the iPod app on some devices). iOS provides the programmer with various forms of access to the device’s music library; you can:

  • Explore the music library
  • Play an item from the music library
  • Learn and control what the Music app’s music player is doing
  • Present a standard interface for allowing the user to select a music library item

These abilities are provided by the Media Player framework. You’ll need to link to MediaPlayer.framework and import <MediaPlayer/MediaPlayer.h>.

Get Programming iOS 6, 3rd 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.