I\'ve created a blank project (iOS) and put this in my viewDidLoad:
NSString *moviePath = [[NSBundle mainBundle] pathForResource:@\"Movie\" ofType:@\"m4v\"];
You have to try this......
NSString *path = [[NSBundle mainBundle]pathForResource:@"test" ofType:@"mp4"];
player = [[MPMoviePlayerViewController alloc]initWithContentURL:[NSURL fileURLWithPath:path]];
[player.view setFrame:CGRectMake(0, 0, 320, 320)];
[self presentMoviePlayerViewControllerAnimated:player];
[player.moviePlayer play];
[self.view addSubview:player.view];