开发者

Check if user has a song from iTunes in his library

I am building an iPhone app for music album released on iTunes, client requested that if user purchased the album, the app should allow to play these开发者_如何学JAVA songs in the app while playing games. I need to find a way how to quicly check if the song is available in the iPod library. I've heard that every song from iTunes has some unique ID but I have no idea how to use it. Searching for the name of the song is not an option in library like mine cause I have over 20 gigs of music ...

Thanks,

Ondrej


You can't. You can detect which songs in a library are purchased items (that is purchased from iTunes), you can probably detect which songs are purchased from Amazon or other stores, you can detect which songs have been matched with iTunes Match.

But you cannot detect whether a song on the store matches one of the songs in the library. At best you can try to match artist / album title / song title / length of the song, but that does in no way guarantee that you would find all matches.


You have 20 gigs of music data, not names. Searching for a unique ID involves the same number of searches as for a name, you have the same number of tracks. What happens if the user bought the CD and ripped it into the iPod?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜