PDA

View Full Version : MPMoviePlayerController, Video is flickering upon second play back.




CorporateFelon
Jun 24, 2009, 01:58 PM
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.

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.

-(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.



marcalanjones
Jun 26, 2009, 05:31 PM
Did you get this issue resolved? I am having the same problem.

Thanks.

CorporateFelon
Jun 29, 2009, 01:54 PM
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.

softwarespecial
Jul 15, 2009, 04:05 PM
Did you ever figure out why the movie would flicker and how to fix it?

sinisa
Nov 2, 2009, 11:48 PM
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?

sneha
Nov 6, 2009, 11:18 PM
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...:confused::confused::confused:

Its a very strange problem. Can any1 help me out with it???

MacToddB
Nov 7, 2009, 03:22 PM
I've seen this often on the simulator but never in the device and none of my customers has either. I vote simulator bug.