I have a strange problem for all of you.
MPMoviePlayerController perfectly reproduces video, and sound is reproduced only through headphones.
The real drag and drop is that this only happens on some iPad and iPhone, even in the EXACT EXACT MODELS by running the SAME EXACT SYSTEM!
I created a simple failure example:
http://www.porcaro.org/MPMoviePlayerController/TestMovie.zip
I saw how it works fine and doesn't work on iPhone 4S, iPhone 4 and iPad 2.
Here is the most appropriate code. Thanks for any insight, I will also send an Apple error:
(void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; moviePath = [NSString stringWithFormat:@"%@/intro.m4v", [[NSBundle mainBundle] bundlePath]]; NSURL *movieURL = [NSURL fileURLWithPath:moviePath]; theMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieURL]; controlStyle = MPMovieControlStyleEmbedded; movieView = [self view]; movieRect = [[self view] frame]; controlStyle = MPMovieControlStyleFullscreen; theMoviePlayer.controlStyle = controlStyle; theMoviePlayer.view.userInteractionEnabled = YES; if (1) { NSLog(@"Created theMoviePlayer: %@. Playing: %@", theMoviePlayer, moviePath); } [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackStateDidChangeNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(checkForEndOfMovie:) name:MPMoviePlayerPlaybackStateDidChangeNotification object:theMoviePlayer];
source share