views:

642

answers:

1

Can anyone suggest me how to obtain the view that contains all buttons from 'MPMoviePlayer'?

If you don't know, at least how you obtain the main view/window of the MPMoviePlayer.

UPDATE: I need to do this to add a button on the controller view. It would look something like this: Example

Thanks in advance!

+2  A: 

You can't add it directly to the MPMoviePlayerController's view -- that's a private view and isn't accessible. If you want to add buttons, you need to create a transparent window over the top of everything and add the buttons to that.

Apple's MoviePlayer sample shows how to do this.

Matt Gallagher
The screenshot above is from an app from the AppStore.
mxg
+1 for correct and only possible answer
Till
Till, if you're going to pay more attention, you'll se that the 'seek' button in on the bar, not in a separated window. When the Controls disappear, the button disappear. Also, the Next/Prev buttons are disabled.
mxg
MPMovieControlModeHidden + custom overlay window resembling the original interface
Till
mxg... the seek button is not on the bar. It's in a separate, invisible window floating over the bar that fades out when the NSNotification indicating the controls are disappearing is sent.It *looks* like its in the bar but that's just due to careful placement.
Matt Gallagher
To reinforce my point -- look extremely closely at the gloss gradient brightness on the "Seek" button. Notice that it's different to the zoom button -- because the "Seek" button is not drawn at the same time.
Matt Gallagher