1

The documentation shows 3 control styles:

MPMovieControlStyleNone,
MPMovieControlStyleEmbedded,
MPMovieControlStyleFullscreen,
MPMovieControlStyleDefault = MPMovieControlStyleFullscreen

I want the controls to mimic the kind found in Apple's "Videos" app, which do not have a fullscreen button or an aspect ratio button. None of the above do this. How do we achieve that?

sol
  • 6,402
  • 13
  • 47
  • 57

3 Answers3

1

Just looked for a similar solution (following up on a client request saying: "I want the same behavior than in Apple's app Videos").
Result of my research: It is not possible.

In fullscreen mode, you either:

  • show no control (and the user can't control the playing of the video)
  • show the controls when starting to play the video (and they automatically disappear after 5 seconds).

Apple has likely used a private API for this.

Guillaume
  • 21,685
  • 6
  • 63
  • 95
0

By iterating all MPMoviePlayerController subviews, then hide the full screen button stackoverflow.com/a/27482687/928599

Community
  • 1
  • 1
mohsinj
  • 143
  • 2
  • 9
-1

Yes you can hide the full screen button. Use MPMovieControlStyleFullscreen with MPMovieScalingModeFill property. My example code is as under:

mpplayerObject.controlStyle = MPMovieControlStyleFullscreen;
[mpplayerObject setScalingMode:MPMovieScalingModeFill]; 
andrewsi
  • 10,807
  • 132
  • 35
  • 51
JBRao
  • 11
  • 3