iPad MPMoviePlayerController only hearing audio, no videos!

Posted by Steph Moreau on Stack Overflow See other posts from Stack Overflow or by Steph Moreau
Published on 2010-06-08T21:38:16Z Indexed on 2010/06/08 21:42 UTC
Read the original article Hit count: 914

I am currently rebuilding my app for the iPad. I would like to play the videos sourced online. I display the information and when i go to play the video all i get is the audio... No video is shown at all. My page looks exactly the same except that i have some "background" noise.

These are the same videos i use on the iPhone app and they work perfectly

This is the code that i call to play my videos

- (IBAction) playMovie{
NSURL *url = [NSURL URLWithString:vidMovie];
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc]initWithContentURL:url];

[moviePlayer play];
}

I am using this on a button on the right side view of a splitViewController. I get the same result in my simulator as on an iPad. Not sure if i'm missing something, but if anyone can help it would be greatly appreciated!

© Stack Overflow or respective owner

Related posts about video

Related posts about ipad