Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Check the <code>fullscreen</code> property and <code>setFullscreen:animated</code> methods as noted in the <a href="http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMoviePlayerController_Class/Reference/Reference.html" rel="nofollow noreferrer">docs</a>.</p> <p>Edit: I believe I misread your question--apologies. </p> <p>Not the best solution, but you could override <code>setFullscreen:</code> to simply ignore the request:</p> <pre><code> - (void)setFullscreen:(BOOL)full { // Ignore request } </code></pre> <p>As far as customizing the controls, you have the option of setting the <code>controlStyle</code>, but all of these have a full screen button, save the "MPMovieControlStyleNone", which give you no controls. You <em>could</em> combine the MPMovieControlStyleNone and overlay your own control bar.</p> <p>I would probably go for the latter myself, as a disabled button I expect to work as a user would probably be frustrating.</p> <p>Hope that at least partially earns-away that down vote. :-)</p> <p>Edit: <em>Adding some more info/code</em></p> <p>So here's just something simple you could do. I build a toolbar using IB </p> <p><img src="https://i.stack.imgur.com/NIx7E.png" alt="toolbar.tiff"></p> <p>and a bit of code for placement and some silly color (this one's a little harsh actually):</p> <pre><code>NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"bar" owner:self options:nil]; UIToolbar *toolbar; if ( nil != array ) { toolbar = array[0]; } CGSize barSize = CGSizeMake(self.window.frame.size.width, 44); CGSize winSize = self.window.frame.size; [toolbar setFrame:CGRectMake(0, winSize.height - barSize.height, winSize.width, barSize.height)]; [toolbar setTranslucent:YES]; [toolbar setBackgroundImage:nil forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault]; [toolbar setTintColor:[UIColor colorWithRed:138/255 green:187/255 blue:255/227 alpha:0.4]]; [self.window addSubview:toolbar]; </code></pre> <p>Just connect up the buttons, maybe do a clear-color overlay to handle the tap-to-bring-up-controls functionality that's already common in the movie players.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload