문제

i want to get a list of all Videos which are in the itunes library, how i get the access to them? later I want to play them eventually, but not in fullscreen. i hope you can help me.

도움이 되었습니까?

해결책

MPMediaPropertyPredicate *predicate = [MPMediaPropertyPredicate predicateWithValue:@(MPMediaTypeAnyVideo) forProperty:MPMediaItemPropertyMediaType];
MPMediaQuery *movieQuery = [[MPMediaQuery alloc] init];
[movieQuery addFilterPredicate:predicate];

NSArray *allVideos = [movieQuery items];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top