MPMoviePlayerController work perfectly in ios4.3 devices.That same code not working ios5.0 devices.It show only black screen.This is the code.Thanks in advance..
MPMoviePlayerController *player=[[MPMoviePlayerController alloc] initWithContentURL: mediaUrl ];
player.controlStyle = MPMovieControlStyleFullscreen;
[player.view setFrame: self.view.bounds];
self.player_=player;
[player release],player = nil;
[self.view addSubview:player_.view];
[player_ prepareToPlay];
[player_ play];