MPMediaItem has a method:
- (id) valueForProperty: (NSString *) property
This method returns the key of the media property to which you want to get the corresponding value. And one of the feature values ββis MPMediaItemPropertyPlayCount:
The number of times a user played a multimedia item. Value is an NSNumber object representing the NSUInteger data type.
Here you can check the doc here and here .
Jonathan naguin
source share