开发者

iPhone - iOS4 - Movie Player - Fullscreen does not work

开发者 https://www.devze.com 2023-01-17 14:51 出处:网络
I have implemented MPMoviePlayer functionality to play in landscape mode in iOS4- by reading information on other posts - thanks stackoverflow!

I have implemented MPMoviePlayer functionality to play in landscape mode in iOS4- by reading information on other posts - thanks stackoverflow!

Basically I have a list of videos in tabular view and from that I can navigate to each video.

Problem I am facing is the video does play in fullscreen (landscape) however the top title bar and bottom navigation bars continue to be visible above the movie. I have tried to hide the bottom tabbar

[self.navigationController setHidesBottomBarWhenPushed:YES];    
[self.navigationController pushViewController:MstvideoplayerView animated:YES];

as well as tried to bring the movie subview to front

[[mpMoviePlayerControllerObj view] setFrame:CGRectMake(0, 0, 480, 320)];
[[self view] bringSubviewToFront:[mpMoviePlayerControllerObj view]];  
mpMoviePlayerControllerObj.controlStyle = MPMovieControlStyleFullscreen;

However the top title bar (from movie list view) and bottom navigation bar still remain - on top of the movie player window.

How do I hide/get开发者_StackOverflow中文版 rid of these 2?


If you call the UIViewControllers method presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animatedwith the MPMoviePlayerViewControllerinstance, it should present the movie player fullscreen

0

精彩评论

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

关注公众号