Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CorporateFelon

macrumors regular
Original poster
I'm using MPMoviePlayerController to play video, and its playing perfectly fine initially. However when I play the same movie again the video flickers. Yet If I play video A, then play video B, then play video A again the play back is normal. It is just when I play video A, then video A again that this happens.

I'm using the follow code to initiate the play back.

Code:
MPMoviePlayerController *theMovie=[[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString: movieLocation]];
	
[[NSNotificationCenter defaultCenter] addObserver:self  selector:@selector(myMovieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:theMovie]; 
	
[theMovie play];

And the following is called when the movie finished its playback.
Code:
-(void)myMovieFinishedCallback:(NSNotification*)aNotification 
{
    MPMoviePlayerController* theMovie=[aNotification object]; 
    [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:theMovie]; 

    [theMovie release]; 
	
}

If any one can point me in some direction as to why this is happening, or what I can do to fix it, it would be greatly appreciated.
 
Did you get this issue resolved? I am having the same problem.

Thanks.

Not yet. When I finish some other functionality I'll take a look at my problem again. At the moment I've only tested on the simulator, and not on a device yet. At the moment I'm really hoping its just something buggy with the simulator.
 
even Apple's MoviePlayer sample flickers

I'm having same problem in Simulator, and haven't yet tried it on the device itself.

When video is played for the first time, all is fine. As soon as I want to replay it, flickering appears, some times more severe, some times less.

I've used exactly the same code as shown above in this thread.

I've tried Apple's sample MoviePlayer, and, it flickers too when playing video again.

Anyone found solution to this? Or is this just bug in Simulator?
 
I am also using MPMoviePlayer Controller to play videos .I am also having the same problem.🙁🙁
I am having another problem when i tested on the device.

I started playing video 1 and then stopped it and played video 2 then i repeated the same thing again nd again after sometime when my video 2 is playing i get frames from video 1...😕😕😕

Its a very strange problem. Can any1 help me out with it???
 
I've seen this often on the simulator but never in the device and none of my customers has either. I vote simulator bug.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.