Hi, I am using a MpMoviePlayerController To play video in my aap. I want to handle the notification sent by tapping the control button displayed in the red circle in below image.
Can any one help me out which notification does this control button fires???
UPdates: I tried it in this way,
NSString * filePath = [[NSBundle mainBundle] pathForResource:@"Movie" ofType:@"m4v"];
NSURL *url = [NSURL fileURLWithPath:filePath];
self.player = [[[MPMoviePlayerViewController alloc] initWithContentURL:url] autorelease];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieDidExitFullScreen:)
name:MPMoviePlayerDidExitFullscreenNotification
object:self.player.moviePlayer];
[self.window addSubview:self.player.view];
And the functiona in selector is
-(void)movieDidExitFullScreen:(id)sender{
NSLog(@"Movie player did exit full screen");}
But the function never gets called on tapping the control button.
Please let me know if m doing some thing wrong.
Regards,
Nic