MPMoviePlayerController with a Custom Button on it's toolbar?

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.

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.

Normal MPMovieplayer has previous,next & play/pause buttons. You tube video - player has additional two buttons on it. I need to know how to do that.

– sugar Oct 23 '09 at 16:12 1 There is no access to modify that UI from your own code. Apple have privileges that 3rd parties don't. You can't add buttons to the UI without using some kind of undocumented/private API - which is forbidden by the app store approval process, and may cause your app to break when Apple update the APIs.

– Jasarien Oct 24 '09 at 11:51 Sir,You might have seen that YouTube app has added two buttons - add to favorites & Send mail to friend this video link. Is YouTube Application of iPhone developed by Apple it self? – sugar Oct 26 '09 at 22:25 1 Yes it is.

And Apple have access to APIs that aren't made public. To this end, Apple are able to do things as they please. – Jasarien Oct 26 '09 at 23:17 1 Undocumented APIs can and will change in the future which may cause your app to break whenever App update the OS.

From what I could see there were no methods for arbitrarily settings buttons on the movie player controller, but there is a method to set the control mode. If you can find out what to pass in to get the youtube buttons, then I imagine you can use them, but it isn't listed anywhere, so it'll be difficult to find out. Just keep in mind what I said about undocumented APIs.

– Jasarien Oct 27 '09 at 8:53.

I would say that it may be possible to just set the MPMoviePlayerController's movieControlMode property to MPMovieControlModedden and add a subview to it with your own collection of buttons, titles, etc... But MPMoviePlayerController inherits only from NSObject, so you couldn't do that. Perhaps you can subclass MPMoviePlayerController and setup your own stuff when play is called, yet again, I imagine MPMoviePlayerController would display itself as a modal fullscreen view and hide anything you setup. :-\ If all you're looking to do is mess with the look of the controls, I DO know that you can mess around with various objects' drawRect: methods to override how bars and buttons are drawn.

For example, setting up a category or subclass of UINavigationBar and implementing drawRect: as follows will result in a custom navigation bar being drawn: - ( void )drawRect:( CGRect )rect { UIImage imageNamed:kSTNavigationBarBackgroundImageName drawInRect:CGRectMake( 0.0, 0.0, self.frame.size. Width, self.frame.size. Height ) ; } This replaces Apple's standard look for their navigation bars and replaces it with a custom image asset.

We do this, among other things, for our apps.

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.

I want to add a button beside next button & previous button. Thanks in advance for helping me.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions