1

enter image description here

Is there any way to hide progress bar which comes on top in navigation bar of MPMoviePlayerController?

I want to hide because I do not want user to forward/backward the video. However, User can exit it by clicking on DONE button.

jigneshbrahmkhatri
  • 3,627
  • 2
  • 21
  • 33

1 Answers1

2

Since the scrubber is available both in the Embedded and the FullScreen version of the MPMovieControlStyle the only solution I see is to use MPMovieControlStyleNone and overlay your own version of the Done button on top of the Movie playback view.

werner
  • 859
  • 4
  • 8
  • so by applying controlstyle to NONE, will it hide entire navigation bar? I want navigation bar, because I am giving url to MPMoviePlayerController, and it gives "loading movie" with loading indicator until it loads movie... So I do not want to hide entire navigation bar. – jigneshbrahmkhatri Jun 29 '11 at 09:23
  • The progress bar shows a Done button to its left and a _fullscreen_ button to its right .. so controlstyle set to NONE will hide those and the << and >> controlls at the bottom. – werner Jun 29 '11 at 13:15
  • Thanks, but I need navigationbar as it gives "Loading Movie..." indication on navigationbar so I want it... – jigneshbrahmkhatri Jun 29 '11 at 13:18
  • in that case you can hide the controlls (progress bar, ..) by switching the MPMovieControlStyle to MPMovieControlStyleNone as soon as you get notified that the movies starts playing. – werner Jun 29 '11 at 13:25
  • 2
    you can not hide only the progress bar by using the standard MPMovieControlStyle options, it is all or nothing ;-) – werner Jun 29 '11 at 18:39
  • Yes, but is there any way to get sub view from navigation bar, and I can get progress bar from that, so I can hide???? – jigneshbrahmkhatri Jun 29 '11 at 18:57