开发者

Detecting music video from iPhone/Pad music library

开发者 https://www.devze.com 2023-03-22 12:04 出处:网络
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 accor

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.

0

精彩评论

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