MPMoviePlayerViewController - 如何在更改全屏时将图像保留在MPMoviePlayerViewController上?

时间:2011-06-23 13:01:07

标签: iphone label mpmovieplayer

NSURL *url = [self localMovieURL];
MPMoviePlayerViewController *playerView = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
MPMoviePlayerController *moviePlayer = [playerView moviePlayer];

moviePlayer.controlStyle = MPMovieControlStyleDefault;
moviePlayer.scalingMode = MPMovieControlStyleFullscreen;

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(moviePlayBackDidFinish:)
                                             name:MPMoviePlayerPlaybackDidFinishNotification
                                           object:moviePlayer];

[self setMessageLabel];
[playerView.view addSubview:message];

[self.navigationController presentMoviePlayerViewControllerAnimated:playerView];

你好,

somthing wrong .. mpMoviePlayerViewController。

来源> 'message(UILabel)'是全局变量。

视频播放>全屏按钮点击>消失的标签......

我不知道为什么要去标签。

是的,请帮助我。

1 个答案:

答案 0 :(得分:0)

只是预感,但您应该尝试关注MPMoviePlayerDidEnterFullscreenNotification通知,然后在通知处理程序中执行以下操作,

[message.superview bringSubviewToFront:message];