So, if a song is being played when the game starts, it will keep playing.
And no way to start playing your own custom game music in that case.
(but sound effects would still work?)
That's not a bad option, if the user wants to listen to his/her own music, just start playing it before your game starts.
Otherwise you can play your own music.
When their song ends, the music is over?
It'd be cool to auto set their repeat mode (repeatMode) (default to MPMusicRepeatModeAll?) so the music never ends.
(but is this global? you may have to set it back when exiting)
How hard is it to allow them to choose songs from their own library while in your game!? That would be neat. Does Apple even expose that?
(Same as photos too I guess. Having custom photos in your game would add a personal touch. (A family portrait in a hallway, billboards, etc). (With the user's permission of course!))
[Edit]
To initialize the playback queue to contain every song in the library, use this: (Objective C I assume?)
// assign a playback queue containing all media items on the device
[myPlayer setQueueWithQuery: [MPMediaQuery songsQuery]];
from the page:
http://www.iphonedevsdk.com/forum/iphone-sdk-development/22636-mpmediaquery-hanging.htmlWe could then give them next / previous buttons in our app and call 'skipToNextItem' and 'skipToPreviousItem'.
But with inline code, how do you insert Objective C? or translate it!?