Hi everyone !
I need to use a property defined in MPMoviePlayerController called currentTime (in iOS 3). It seems to be a private property but not in iOS 4, which is now called currentPlaybackTime.
I want my app to be launched starting iOS 3.0. So I wrote this :
@implementation MPMoviePlayerController(extended)
-(double)time {
if ([self respondsToSelector:@selector(currentPlaybackTime)]){
return [self currentPlaybackTime];
}
return [self currentTime];
}
@end
So I can use this function in each OS to get movie current time. I just would like to know if it is allowed and if my application would be rejected... If it is, how can I get this property ? Is there another way to play a video and get its current time without using MPMoviePlayerController ?
Thanks