Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
Code:
moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:theURL];
	moviePlayerViewController.moviePlayer.controlStyle = MPMovieControlStyleFullscreen;
	[moviePlayerViewController.moviePlayer setFullscreen:YES];
	//moviePlayerViewController.moviePlayer.scalingMode = MPMovieScalingModeAspectFit;
	[self.controller presentMoviePlayerViewControllerAnimated:moviePlayerViewController];

My code is as above. If i tap the stretch or forward button, the movieplayer will stops playing and dismiss the view controller. Also the PlyabackEndNotification method is getting called .
 
Code:
moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:theURL];
	moviePlayerViewController.moviePlayer.controlStyle = MPMovieControlStyleFullscreen;
	[moviePlayerViewController.moviePlayer setFullscreen:YES];
	//moviePlayerViewController.moviePlayer.scalingMode = MPMovieScalingModeAspectFit;
	[self.controller presentMoviePlayerViewControllerAnimated:moviePlayerViewController];

My code is as above. If i tap the stretch or forward button, the movieplayer will stops playing and dismiss the view controller. Also the PlyabackEndNotification method is getting called .

I did inherited MPMoviePlayerViewController and added a overlay view with clear color over the forward and expand button, in short disabled the user interaction over both controls.

Place the overlay view like below

Code:
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
	if(UIInterfaceOrientationIsPortrait(toInterfaceOrientation))
		overlayView.frame = CGRectMake(420.0, 850.0, 170.0, 100.0);
	else
		overlayView.frame = CGRectMake(550.0, 590.0, 170.0, 100.0);

}
 
presentMoviePlayerViewControllerAnimated video stops

I'm experiencing the same problem. Has any else figured out why the video stops playing when tapping these buttons?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.