Swastik
Swastik

Reputation: 2425

MPMoviePlayerController control visible when starting movie

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];
[player 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

Upvotes: 0

Views: 5061

Answers (1)

Sanniv
Sanniv

Reputation: 1877

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.

Upvotes: 3

Related Questions