white screen before MPMoviePlayerViewController
i am streaming a video from a server, it works perfectly using MPMoviePlayerViewController
.
MPMoviePlayerViewController
connects and starts playing the video. this is annoying, and i have no clue how to fix it. this is the code i am using to play the video:
NSString *videoURLString = @"http://serverAdress/test/videotest/starwars.mp4";
NSURL *videoURL = [NSURL URLWithString:videoUR开发者_StackOverflow中文版LString];
MPMoviePlayerViewController *moviePlayerView = [[[MPMoviePlayerViewController alloc] initWithContentURL:videoURL] autorelease];
[self presentMoviePlayerViewControllerAnimated:moviePlayerView];
Try something like this:
moviePlayerView.view.backgroundColor = [UIColor blackColor];
Resource: MPMoviePlayerController shows blank white screen before launch?
精彩评论