Some problem with MPMoviePlayerController using in ipad application

Posted by Miraaj on Stack Overflow See other posts from Stack Overflow or by Miraaj
Published on 2010-04-02T17:51:21Z Indexed on 2010/04/04 5:03 UTC
Read the original article Hit count: 436

Filed under:
|
|

Hi all

I am using MPMoviePlayerController in Ipad application. Video is not showing but audio comes, same code working well for Iphone

NSBundle *bundle = [NSBundle mainBundle];
NSString *moviePath = [bundle pathForResource:@"video" ofType:@"mp4"];

movieURL = [NSURL fileURLWithPath:moviePath];
MPMoviePlayerController *IntroMovie = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
  [IntroMovie play];

[[NSNotificationCenter defaultCenter] addObserver:self 
                                         selector:@selector(moviePlaybackDidFinish:) 
                                             name:MPMoviePlayerPlaybackDidFinishNotification 
                                           object:nil]; 

Please suggest me

Thanks Miraaj

© Stack Overflow or respective owner

Related posts about ipad

Related posts about iphone