views:

398

answers:

4

Hi,

I'm using MPMoviePlayerViewController - with the player controls set to: MPMovieControlStyleFullscreen

I'm having a problem with some of buttons that are in MPMovieControlStyleFullscreen: forward, reverse, and fullscreen (the one with the arrows pointing at eachother).

I would like to either remove the forward, reverse, and fullscreen buttons or control what they do when the user taps them.

Thank you!

A: 

Try setting MPMovieControlStyle of your MPMoviePlayerController object to MPMovieControlStyleNone

cooltechnomax
The only issue is I need a way for the end user to end the video if they do not want to watch the whole thing.
stopmotion24
A: 

Was there a solution to this?

Jay Lee
I have not found a solution yet.
stopmotion24
I havent found a solution yet.
Jay Lee
+1  A: 

There isn't a way to customize the MPMovieControlStyle values provided by Apple. What you need to do is is turn off the Apple controls (MPMovieControlStyleNone) and then create your own custom controls. Apple is fine with you putting your own UIViews in to the hierarchy here, so you can get started with something like this:

MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL: YOUR_URL];
moviePlayer.controlStyle = MPMovieControlStyleNone;
UIView *movieView = moviePlayer.view;
[movieView addSubview: _movieControlsView];
[movieView bringSubviewToFront: _movieControlsView];

Where _movieControlsView was set up earlier in code or in IB.

Aesthetically, you can do what you want, but I would recommend sticking with something that looks like Apple's choices so as not to confuse the user. For the project I just finished, I created a transparent button the exact size of the movie player. Clicking the button fades in a control bar on the bottom with my custom controls. If one of the controls isn't clicked, the control bar fades back out again after a few seconds.

Scott Roth
A: 

This question, by another overflow user, may give some insight into what you are trying to accomplish. Hopefully this willl help.

http://stackoverflow.com/questions/190493/add-custom-controls-to-movieplayer?

later.

GMoP