MPMoviePlayerController with a Custom Button on its toolbar

Sagar R. Kothari picture Sagar R. Kothari · Oct 20, 2009 · Viewed 8.8k times · Source

You might have seen video through you tube in iPhone.

Normal MPMoviePlayerController has previous, next & play/pause buttons.

You tube - player has additional two buttons on it.

=> Add to favorites on the left side.

=> Email this video on right side.

I want to implement the same for my application.

But I am failed to find out the property or methods regarding - implementing this.

How do I need buttons on it?

  • When User is watching video there should no buttons on screen.
  • When user taps on video - a toolbar comes on top & at center
  • A center tool bar has generally three buttons on it ,Previous - next -play/pause
  • I want to add a button beside next button & previous button.

Answer

Jasarien picture Jasarien · Oct 20, 2009

I don't think you can modify the interface of an Apple provided view.
The general approach would be to play your video and then after it's done, show a view with the desired buttons/and or options for the user.

An example of this can be seen with the YouTube app on the iPhone. After the youtube video plays, the user is sent to a summary view with links to watch the video again, favourite it, share it, etc.