I'm trying to use a MPMoviePlayerController to play a movie, but all I get is a black screen. Any ideas why this is? Here's the code I'm using.
Thanks for any help...
Code:
- (void)playVideo:(ChatMessage *)msg {
NSURL *movieURL = msg.videoURL;
self.player = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
[self.player prepareToPlay];
[self.player.view setFrame: self.view.bounds];
[self.player play];
}
Thanks for any help...
Last edited: