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

Sergio10

macrumors regular
Original poster
Oct 3, 2007
137
0
Hi,

I have a problem with video playback. When play content first time, it work fine. But when play for the second time and the same movie it show black screen or blinks sometimes. I play content in this way:

PHP:
NSBundle *bundle = [NSBundle mainBundle]; 
NSString *moviePath = [bundle pathForResource:@"Iron Man 2" ofType:@"m4v"]; 
NSURL *movieURL = [NSURL fileURLWithPath:moviePath]; 
MPMoviePlayerController *_moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieURL]; 
...

[_moviePlayer play];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.