开发者

Getting blank white screen when presenting MPMoviePlayerViewController

Anybody have trouble with an MPMoviePlayerViewController giving a white screen when it is presented?

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath      *)indexPath {  
MPMoviePlayerViewController* mpViewController = [[MPMoviePlayerViewController alloc] init];
[[mpViewController moviePlayer] setContentURL: [NSURL URLWithString:@"http://burtonliftline.com/site-media/uploads/videos/ad_to_fakie-the_liftline_1.mp4"]];
[self presentMoviePlayerViewControllerAnimated:mpViewController];

开发者_StackOverflow中文版}


I assume you're just seeing the blank controller while the movie is loading. Have you tried setting the view controller's background to black?

[mpViewController setBackgroundColor:[UIColor blackColor]];


Embarrassing but my problem was that my video wasnt wanting to play on the iPhone from the server. It was shooting me this error when I tried to stream that video from safar "the server is not correctly configured". I needed to be pointing to http://media.burtonliftline.com/site-media/uploads/videos/ad_to_fakie-the_liftline_1.mp4

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜