MPMoviePlayerViewController - 更改全屏时如何在 MPMoviePlayerViewController 上保留图像?
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];
你好,
出了点问题.. mpMoviePlayerViewController。
来源>> “message (UILabel)”是全局变量。
视频播放>全屏按钮点击>标签消失了...
我不知道为什么标签消失了。
请有人帮助我。
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];
hello,
somthing wrong .. mpMoviePlayerViewController.
source > 'message (UILabel)' is global variable.
video play > full screen button click > gone label ...
I don't know Why gone label.
anybody help me please .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是预感,但您应该尝试遵循
MPMoviePlayerDidEnterFullscreenNotification
通知,然后在通知处理程序中执行以下操作,Just a hunch but you should try following the
MPMoviePlayerDidEnterFullscreenNotification
notification and then do the following in the notification handler,