Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code>-(void)videoFile:(NSString *)moviepath { //[tools setHidden:YES]; // bi3.enabled=NO; // Register to receive a notification when the movie scaling mode has changed. //NSString *moviePath = [bundle pathForResource:@"video" ofType:@"mp4"]; NSURL *movieURL1 = [[NSURL fileURLWithPath:moviepath] retain]; MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:movieURL1]; [theMovie setControlStyle:MPMovieControlStyleFullscreen]; [theMovie play]; MPMoviePlayerViewController *moviePlayer11 = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL1]; [self presentMoviePlayerViewControllerAnimated:moviePlayer11]; // Override point for customization after app launch // [navigationController.view addSubview:]; //[self.view addSubview:mpMCtr.view]; } - (void) movieFinishedCallback:(NSNotification*) aNotification { bi3.enabled=YES; [tools setHidden:NO]; MPMoviePlayerController *player = [aNotification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:player]; // [player stop]; //[self.view removeFromSuperview]; [player.view removeFromSuperview]; [player autorelease]; } - (void) moviePlayBackDidFinish:(NSNotification*)aNotification { MPMoviePlayerController* theMovie=[aNotification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:theMovie]; //[mpMCtr stop]; [theMovie.view removeFromSuperview]; [videoTable removeFromSuperview]; //[self.navigationController popViewControllerAnimated:YES]; } -(void)videoClick:(id)sender { bi3.enabled=NO; path2 = [[NSBundle mainBundle] pathForResource:@"Interview" ofType:@"mp4" inDirectory:nil]; [self videoFile:path2]; } </code></pre>
 

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