MPMoviePlayerController will play once, then throw an error
问题 I realise that a similar question has been posted before, but I really can't seem to find a solution that works for me. I have a MoviePlayer class which stores an ivar of MPMoviePlayerController, and I have the following method in the class: -(void)playMovie:(NSString *)movieName { NSURL *movieURL; NSBundle *bundle = [NSBundle mainBundle]; if(bundle) { NSString *moviePath = [bundle pathForResource:movieName ofType:@"m4v"]; if(moviePath) { movieURL = [NSURL fileURLWithPath:moviePath]; } }