views:

536

answers:

2

I would like to have layers of buttons over video playing in the background on my IPHONE application. Basically, I'm looking to adjust the Movie Player code, in order to allow the application user to tap on different portions of the screen while a video plays and call other commands (for example a video of puppets talking, if you touch one of the puppets, the video pauses and a second (smaller) window appears with a list of information about that puppet; when you exit that list, the video continues where it was paused).

A: 

This tutorial explains how to add subviews to the movie player. However, I don't think that there is a way to programmatically pause a video. In addition, you will still need to figure out which object in the video was touched based on location which seems like the hard part in this.

Randy Simon
A: 

Hope this helps

MPMoviePlayerController *moviePlayer = ( MPMoviePlayerController * )[ appDelegate moviePlayer ];

[ [appDelegate moviePlayer] pause ];
Xavi Colomer