I am implementing an audio based application. In that I am using AVPlayer to play the list of MPMedia items selected from iPod Library. In my app I need to test 1 case, that is I need to compare the currently playing (from AVPlayer) with the list of MPMedia Items. How can I do this?
For easy understanding the following is I need:
for(MPMediaItems)
{
if([MPmedia Item]== [AVPlayer CurrentItem])
{
printf("Do some action");
}
}
1 Answer