在我的应用程序播放视频的视图之一的部分黑色背景,包含下面的代码iPhone:MPMoviePlayer显示第二最初
NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"bgVideo" ofType:@"mov"]];
player = [[MPMoviePlayerController alloc] initWithContentURL:url];
[player setControlStyle:MPMovieControlStyleNone];
player.view.frame = CGRectMake(35, 190, 245, 156);
[self.view addSubview:player.view];
[player play];
[player.view setBackgroundColor:[UIColor clearColor]];
我写了这个代码在viewWillAppear中方法
但当我开始观看这个视图时,我的MPMoviePlayerController会在开始播放视频之前显示黑屏,并显示秒数。
我不想黑屏第二。
我为此做了什么?
thanx提前。
相关:http://stackoverflow.com/questions/8429701/mpmovieplayercontroller-showing-black-empty-screen – bummi 2013-10-20 12:36:00