2011-05-27 55 views
-1

iPhone設備中的MPMoviePlayerController存在問題。它在我的iPhone設備中播放時沒有清晰(不能正確看到視頻內容)。但是它正在我的模擬器中正常播放。iPhone中的MPMoviePlayerController

任何一個可以告訴我一個辦法來解決這個問題..

+0

你應該試圖解釋這個問題好一點。也許截圖會有所幫助? – Till 2011-05-27 22:06:05

回答

0

使用此代碼

NSString *filepath = [[NSBundle mainBundle] pathForResource:@"aaa" ofType:@"mp4"]; 
NSURL *fileURL = [NSURL fileURLWithPath:filepath]; 
MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL]; 
[moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)]; 
[self.view addSubview:moviePlayerController.view]; 
moviePlayerController.fullscreen = YES; 
[moviePlayerController play]; 
相關問題