bsb_coffee
bsb_coffee

Reputation: 7061

Controlling iTunes on iPhone from within an app

Hi I was just wondering if there is a library or set of methods for controlling the audio playing on an iPhone, i.e. play/pause, next/prev etc.

I can't seem to find anything, does anyone know if they exist?

Upvotes: 0

Views: 164

Answers (1)

omz
omz

Reputation: 53561

You can use the MPMusicPlayerController from the MediaPlayer framework to play "iPod" music.

MPMusicPlayerController *player = [MPMusicPlayerController iPodMusicPlayer];
[player skipToNextItem];
//...

Upvotes: 1

Related Questions