开发者

Programmatically creating an ios genius playlist

开发者 https://www.devze.com 2023-03-09 06:15 出处:网络
I\'m looking for a way to create programmatically a genius playlist based on a random song. Something like:

I'm looking for a way to create programmatically a genius playlist based on a random song.

Something like: 1.- pick a random song from ipod library 2.- query genius for 25 songs related to the random song picked 3.- make MPMusicPlayerController play all the created playlist

All I have found is an attribute c开发者_StackOverflow社区alled "MPMediaPlaylistAttributeGenius" [1]. I think it allows to look for a previously created genius playlist.

thanks

[1]= http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMediaPlaylist_ClassReference/Reference/Reference.html


There is no way to create your own genius playlists programmatically because Apple does not provide a method for doing so. They only allow you to search for previously created genius playlists by creating an MPMediaQuery, filtering by Playlists, then filtering by the attribute "MPMediaPlaylistAttributeGenius".

0

精彩评论

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