Problem streaming video on iPhone, only audio is playing

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-06-09T00:41:20Z Indexed on 2010/06/09 0:52 UTC
Read the original article Hit count: 336

I am trying to stream a video using MPMoviePlayerController but only audio is working. How can I get the video to appear?

- (void)loadView {
    NSString *url = @"http://d1xt8xjto3lfs9.cloudfront.net/060810/afternoonupdate060810.mov";
    MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:url]];
    [moviePlayer play];
}

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c