开发者

MPMoviePlayerViewController - How to keep image on MPMoviePlayerViewController when change Fullscreen?

开发者 https://www.devze.com 2023-03-15 02:54 出处:网络
NSURL *url = [self localMovieURL]; MPMoviePlayerViewController *playe开发者_如何学编程rView = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
NSURL *url = [self localMovieURL];
MPMoviePlayerViewController *playe开发者_如何学编程rView = [[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 .


Just a hunch but you should try following the MPMoviePlayerDidEnterFullscreenNotification notification and then do the following in the notification handler,

[message.superview bringSubviewToFront:message];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号