Detecting music video from iPhone/Pad music library
Im using MPMediaQuery to search the library on a user's iPhone/Pad. Im able to return audio tracks but im unable to return any of the videos which are on the device. Apparently its not possible according to this article but i fail to understand why this would be. If that is true, is there another way to retrive this information?
This is how im retrieving tracks
MPMediaQuery *queryTracksByArtist = [MPMediaQuery artistsQuery];
MPMediaPropertyPredicate *pred = [MPMediaPropertyPredicate predicateWithValue:@"The Album Title" fo开发者_Python百科rProperty:MPMediaItemPropertyAlbumArtist comparisonType:MPMediaPredicateComparisonContains];
[queryTracksByArtist addFilterPredicate:pred];
NSArray *itemsFromGenericQuery = [queryTracksByArtist items];
No, As of now, you cannot access video with ipod library access. check this link.
精彩评论