CGRect screen = [[UIScreen mainScreen] bounds];
NSURL *movieUrl = [[NSBundle mainBundle] URLForResource:@"movie" withExtension:@"mp4"];
_player = [[MPMoviePlayerController alloc] initWithContentURL:movieUrl];
[_player setRepeatMode:MPMovieRepeatModeOne];
_player.view.frame = screen;
_player.scalingMode = MPMovieScalingModeFill;
[self.player setControlStyle:MPMovieControlStyleNone];
[self.view addSubview:self.player.view];
[self.player prepareToPlay];