Hey Guys having an issue here
I have this code working for the movie player on 4.0 OS
MPMoviePlayerController* theMovie=[[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:escapedUrl]];
theMovie.view.frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height);
[self.view addSubview:theMovie.view];
theMovie.controlStyle=MPMovieControlStyleFullscree n;
[theMovie play];
Im trying to stick in a notifier when the [done] button gets pressed
So i put in
//Register for the playback finished notification.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(myMovieFinishedCallback

name:MPMoviePlayerPlaybackDidFinishNotification
object:theMovie];
Before
[theMovie play];
Well when i press thedone button its suppost to call
-(void)myMovieFinishedCallback

NSNotification*)aNo tification
{
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
MPMoviePlayerController* theMovie=[aNotification object];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:theMovie];
[theMovie release];
[activityIndicator stopAnimating];
}
Well when i press done on the controller the movie dtops playing but the view does not close and return back tomy application
can someone help me figure this out please
Thank You
Ricky