MPMoviePlayerController-CurrentPlybackTimeMonitor
MPMoviePlayerController-CurrentPlybackTimeMonitor copied to clipboard
MPMoviePlayer category to monitor current play back time.
MPMoviePlayerController-CurrentPlybackTimeMonitor
MPMoviePlayer category to monitor current play back time.
#How To:
Import the category in your .m file:
#import "MPMoviePlayerController+CurrentPlaybackTimeMonitor.h"
Simply call the currentTimeMonitor method:
[self.moviePlayerController currentTimeMonitor:^{
NSLog(@"Current time %i",[moviePlayerController.lastRecordedPlaybackTime intValue]);
}];
To stop monitoring:
[self.moviePlayerController endPlayerPolling];