Hi Guys,
I got this simple media player working:
It starts playing your iTunes library.
Is there a simple way to make it start playing a particular track by it's title,
if it happens to known that it will be present on the device?
Cheers, Art.
I got this simple media player working:
Code:
// instantiate a music player
MPMusicPlayerController *myPlayer =
[MPMusicPlayerController applicationMusicPlayer];
// assign a playback queue containing all media items on the device
[myPlayer setQueueWithQuery: [MPMediaQuery songsQuery]];
// start playing from the beginning of the queue
[myPlayer play];
It starts playing your iTunes library.
Is there a simple way to make it start playing a particular track by it's title,
if it happens to known that it will be present on the device?
Cheers, Art.