How to detect when iPhone MPMoviePlayer controls appear/disappear?

Ok, got it, make like this: BOOL controlsVisible = NO; for(id views in _moviePlayer view subviews){ for(id subViews in views subviews){ for (id controlView in subViews subviews){ controlsVisible = (controlView alpha You can add an observer and fire things as needed. I know is not elegant but it works for me, as Apple has not documented anything regarding this task Cheers.

Ok, got it, make like this: BOOL controlsVisible = NO; for(id views in _moviePlayer view subviews){ for(id subViews in views subviews){ for (id controlView in subViews subviews){ controlsVisible = (controlView alpha You can add an observer and fire things as needed. I know is not elegant but it works for me, as Apple has not documented anything regarding this task. Cheers ...

Look into the movieControlMode property. You can set the MPMovieControlMode MPMovieControlMode Options for displaying movie playback controls. Typedef enum { MPMovieControlModeDefault, MPMovieControlModeVolumeOnly, MPMovieControlModedden } MPMovieControlMode; You can also check out MPMoviePlayerScalingModeDidChangeNotification.

I know how to enable the controls, what I'm looking for is a notification when the controls appear and disappear (for instance, when the user taps the screen). – Mark Smith Mar 18 '10 at 1:04.

Pre iOS3.2 to detect "disapierance" is easy: NSNotificationCenter defaultCenter addObserver:self selector:@selector(movieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayerController; to detect appierance is bit harder (maybe there is better way): ... moviePlayerController play; mainTimer = NSTimer scheduledTimerWithTimeInterval:1/100 target:self selector:@selector(tick) userInfo:nil repeats:YES; - (void)tick { if( UIApplication sharedApplication windows count.

I'm referring to the player controls that appear in a HUD over top of the movie. These will appear and disappear while the move is playing (for instance, when the user taps on the movie). – Mark Smith Sep 27 '10 at 17:38.

In the deepest loop, the MPFullScreenVideoOverlay view instance will have alpha == 0.0 if the controls are hidden, or alpha 1.0 if the controls are shown. You can add an observer and fire things as needed. I know is not elegant but it works for me, as Apple has not documented anything regarding this task.

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