Search code examples
iphoneiosaudiompmovieplayer

Is there a music player for iOS with controls?


Is there a music player that has playback controls built in (like MPMoviePlayer) but for audio?


Solution

  • It should be relatively simple to implement custom controls for AVAudioPlayer located in the AVFoundation framework. It has pre-made methods for play, pause, and stop, and audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag to handle playlists. You should give it a look.