MPMoviePlayerController control is displayed when a movie starts

I have a strange problem with MPMoviePlayerController. When the movie starts, the top panel with the finished button and controls remains visible for several seconds. Then disappears.

I use

[player setControlStyle:MPMovieControlStyleFullscreen];
[player setFullscreen:YES];

player is an object MPMoviePlayerController

I just want the movie to play in full screen using the top bar and hidden controls

& only become visible if the user clicks on the screen

I am using iOS 4.0

0
source share
1 answer

try it

before starting the video

player.controlStyle =  MPMovieControlStyleNone;

and when the movie starts playing, set

player.controlStyle = MPMovieControlStyleFullscreen;

You can get the playback callback from the MPMediaPlayback protocol.

+3
source