Note that there are some explanatory texts on larger screens.

plurals
  1. POMPMoviePlayerViewController / MPMoviePlayerController will not play the same movie twice?
    text
    copied!<p>Steps to replicate: 1. Call playMovieAtURL. Use this url: (<a href="http://nov8rixstorage.blob.core.windows.net/searchpad/tutorial_portrait.mov" rel="nofollow noreferrer">http://nov8rixstorage.blob.core.windows.net/searchpad/tutorial_portrait.mov</a>) 2. Let the movie start then press Done. 3. Call playMovieAtURL again using the same URL.</p> <p>Result: MPMoviePlayerViewController animates in; flashes a few times; and closes with error in notification object. ("Server is not correctly configured.")</p> <p>This is very strange. Making things stranger; the movie player will not play anything again until the app is deleted from the device (simulator or iphone). Upon re-deployment it will play the movie perfectly once again; but alas on the second play it will repeat the above behavior.</p> <p>What am I doing wrong? Can anyone reproduce this?</p> <pre><code>- (void) playMovieAtURL: (NSURL*) theURL { [theURL retain]; MPMoviePlayerViewController *mp = [[MPMoviePlayerViewController alloc] initWithContentURL:theURL]; if (mp) { [self presentMoviePlayerViewControllerAnimated:mp]; [[NSNotificationCenter defaultCenter] addObserver:self selector: @selector(playbackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:mp.moviePlayer]; [mp release]; } [theURL release]; } -(void) playbackDidFinish:(NSNotification*)aNotification { MPMoviePlayerController *player = [aNotification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:player]; [player stop]; [self dismissMoviePlayerViewControllerAnimated]; } </code></pre> <p>Edit: Can anyone replicate this? Anyone?</p>
 

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