mediaplayer framework not playing video in iOS 6
问题 I am using the mediaplayer framework included in iOS 6 to try and play a movie from within an app. I import and then: -(IBAction)playMovie:(id)sender { NSString *filepath = [[NSBundle mainBundle] pathForResource:@"buyTutorial" ofType:@"mov"]; NSURL *fileURL = [NSURL fileURLWithPath:filepath]; MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL]; [self.view addSubview:moviePlayerController.view]; moviePlayerController.fullscreen = YES;