Note that there are some explanatory texts on larger screens.

plurals
  1. POCrash when Running MPMoviePlayerController
    primarykey
    data
    text
    <p>Ive been battling with a crash on my exercise app for the past couple of days when I try and play an instance of an MPMoviePlayerController in a UIView created in IB. The rest of the app runs fine, but if any MPMoviePlayer is instantiated, the debugger pauses the app without raising an exception. It's not just this code that causes it. Other methods of instantiating a moviePlayer from other posts or books cause the same result.</p> <p><em><strong>Its when I run this code that it drops out to the main:</em></strong></p> <pre><code>NSURL *url = exercise.exerciseVideoURL;//path for vid self.moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:url]; [self.moviePlayerController.view setFrame:self.movieHostingView.bounds]; [self.moviePlayerController prepareToPlay]; [self.moviePlayerController setControlStyle:MPMovieControlStyleNone]; [self.movieHostingView addSubview:self.moviePlayerController.view]; [[self.moviePlayerController view] setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; [[self.moviePlayerController view] setClipsToBounds:YES]; [[self.moviePlayerController view] setFrame:[[self movieHostingView] bounds]]; [self.movieHostingView addSubview:self.moviePlayerController.view]; self.moviePlayerController.repeatMode = MPMovieRepeatModeOne; </code></pre> <p>I've tried using MPMoviePlayer instantiating code from other posts, binning off the model and just instantiate it with a direct path like in some of the other posts, but it still drops out to main(). </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload