Ritika Ritika - 5 months ago 45
Objective-C Question

MPMoviePlayerController showing black empty screen

I use

to play a local file in my Application Document folder which have I have downloaded for a server URL:

itemMoviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[self.view addSubview:itemMoviePlayerController.view];
itemMoviePlayerController.fullscreen = YES;
itemMoviePlayerController.movieSourceType = MPMovieSourceTypeFile;
itemMoviePlayerController.initialPlaybackTime = -1.0;
[itemMoviePlayerController play];

When I play
file just after I downloaded it, It shows up a black empty screen & app UI is unusable.
But if play same local file next time, it plays fine.
I even verified
they seems fine.
What could be reason for black empty screen?

Answer Source

This issue seems fixed after updating device iOS to 5.0.
Seems to iOS SDK issue for previous version

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download