My iPhone App doesn't work in iOS 4. Why?

Posted by noflipes on Stack Overflow See other posts from Stack Overflow or by noflipes
Published on 2010-06-15T15:19:24Z Indexed on 2010/06/15 15:32 UTC
Read the original article Hit count: 327

Filed under:
|
|

Hi everybody.

I make a iPhone App that display some videos, I made it with Xcode 3.2.2 with iPhone SDK 3.1.3 and works fine. But a few days ago I downloaded the last version of the iPhone SDK for iOS 4, the proyect Build ok, no erros, no warnings, but when I run the aplication the video didn't work, the image didn't load but sound works. I don't understand it.

Here is the code that I used.

NSBundle *Bundle = [NSBundle mainBundle];
NSString *moviePath = [Bundle pathForResource:@"Prueba" ofType:@"mp4"];
NSURL *movieURL = [[NSURL fileURLWithPath:moviePath] retain];
MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
theMovie.scalingMode = MPMovieScalingModeFill;
[theMovie play];

Some idea?

Best regards

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk