开发者

MPMoviePlayerController control visible when starting movie

开发者 https://www.devze.com 2023-01-27 06:21 出处:网络
I have strange problem with MPMoviePlayerController. When movie starts , top bar with done button & controls remain visible for few seconds.Then disappears.

I have strange problem with MPMoviePlayerController. When movie starts , top bar with done button & controls remain visible for few seconds.Then disappears.

I am using

[player setControlStyle:MPMovieControlStyleFullscreen];
[p开发者_JAVA百科layer setFullscreen:YES];

player is an object of MPMoviePlayerController

I just want movie to play in full screen with top bar & controls hidden

& become visible only if user taps the screen

I am using iOS 4.0


try this

before starting the video

player.controlStyle =  MPMovieControlStyleNone;

and when movie starts playing then set

player.controlStyle = MPMovieControlStyleFullscreen;

You can get play callback from MPMediaPlayback protocol.

0

精彩评论

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