2

For video playback, I'm using MPMoviePlayerController, which provides a new user interface. Is there an equivalent for audio playback? I cannot get the MPMoviePlayerController to play an MP3 file.

Robert
  • 8,717
  • 2
  • 27
  • 34
Frank E
  • 53
  • 5
  • 1
    (In the future consider asking the base question - "How can I play an audio file in iOS application?" - and then expand out. It would also make a better starting query in a search.) –  Jan 12 '13 at 03:34

1 Answers1

0

AVAudioPlayer might suit your needs. Although it does not provide the GUI elements in the way that MPMoviePlayerController does, it provides a high-level API that would be easy to combine with custom UI elements.

Additionally, you may be able to utilize Apple's sample project avTouch to see how it's used (or even include in your own project).

isaac
  • 4,867
  • 1
  • 21
  • 31