2012-11-05 6 views

답변

2

이 이것을 시도 일 것입니다 :

NSString *filepath = [[NSBundle mainBundle] pathForResource:@"MovieName" ofType:@"mov"]; 
NSURL *fileURL = [NSURL fileURLWithPath:filepath isDirectory:NO]; 

MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL]; 
moviePlayerController.view.frame = self.view.bounds; 
moviePlayerController.movieSourceType = MPMovieSourceTypeFile; 
moviePlayerController.fullscreen = YES; 

[self.view addSubview:moviePlayerController.view]; 
[moviePlayerController prepareToPlay]; 
[moviePlayerController play]; 
+3

믹 워커 코드에서 잘못은 무엇? –