guys 🙂 Can you please share some ideas how to get one or more random MPMediaItems from user’s iPod Library. Any call to [MPMediaQuery songsQuery].items is waaaaay too slow – for a library of just 800 songs it takes about 19 seconds on my iPod Touch 2G to execute the query. I don’t want to cache the entire iPod library, because I don’t think it’s worth the effort. Any thoughts will be greatly appreciated. Thank you 🙂
Share
I wrote this method to retrieve a random track from the music collection for my iPad Jukebox application called My Jukebox, hopefully you can use it too. Its fast, even on big music collections and if you retain the MediaQuery object (store it as a property of the class) then the second call is almost instant. I hope it helps.