关于MPMoviePlayer控制条框架

时间:2012-04-23 07:19:46

标签: ios ipad mpmovieplayercontroller

我在下面有一些消息来源。

UIView *MediaInfo = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 1024.0f, 748.0f)];
[MediaInfo setBackgroundColor:[UIColor blackColor]];


NSBundle *_mainBundle = ****;
// MPMoviePlayerController
self.movieView = [[MPMoviePlayerController alloc] init];
self.movieView.shouldAutoplay = NO;
self.movieView.movieSourceType = MPMovieSourceTypeFile;
self.movieView.scalingMode = MPMovieLoadStateStalled; 
self.movieView.controlStyle = MPMovieControlStyleFullscreen;
NSURL* videoURL = [NSURL fileURLWithPath:[_mainBundle pathForResource:videoNm ofType:nil] isDirectory:NO];    
self.movieView.contentURL = vURL;

[self.movieView.view setFrame:CGRectMake(0.0f, 0.0f, 1024.0f, 748.0f)];
[vMediaInfo addSubview:movieView.view];

当电影播放时,控制栏显示低于20px。(状态栏的高度)

如何将控制栏显示在头上?

0 个答案:

没有答案