MPMoviePlayerController stutter

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2009-08-08T22:16:18Z Indexed on 2010/06/16 18:02 UTC
Read the original article Hit count: 218

Filed under:
|
|

Code :

   NSString *path = [[NSBundle mainBundle] pathForResource:@"sample" ofType:@"m4v"];

   MPMoviePlayerController *video = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:path]]; 

   [video setBackgroundColor:[UIColor blackColor]];
   video.scalingMode = MPMovieScalingModeAspectFill; 

   [[ NSNotificationCenter defaultCenter ] addObserver: self selector: @selector(movieFinishedCallback:) name: MPMoviePlayerPlaybackDidFinishNotification object: aVideo ];

   [video play];

....movieFinishedCallback...

   [video release];

Result :

Movie starts at frame 10 and then resets to frame 0, creating a stutter effect...

Any Ideas ?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about video