i cannot see movie playing in iphone simulator

Posted by Neelam Roy on Stack Overflow See other posts from Stack Overflow or by Neelam Roy
Published on 2009-12-17T06:34:45Z Indexed on 2010/03/31 10:43 UTC
Read the original article Hit count: 357

Filed under:
|

Hi, i have created a application that plays movie on button click..my application is running without any warning or error. But i am not able to see the movie don't know why? I have added the Media player framework and also imported the #import in viewController.h my button action code is as follow... -(IBAction)playMyMovie:(id)sender{

NSBundle *bundle =[NSBundle mainBundle];
NSString *moviePath = [bundle pathForResource:@"jumps" ofType:@"mov"];
NSURL *movieURL = [[NSURL fileURLWithPath:moviePath] retain];
MPMoviePlayerController *theMovie =[[MPMoviePlayerController alloc] initWithContentURL:movieURL];
theMovie.scalingMode = MPMovieScalingModeAspectFill;
[theMovie play];

}

Please tell me what i am missing..

© Stack Overflow or respective owner

Related posts about mpmovieplayer

Related posts about iphone