title: playing video in objective c
body: <p>I try this but not work I can hear the sound but I can't see the image..How can I solve this??</p>
  
  <p>in app delegate class:</p>
  
  <pre><code>- (IBAction)tanitimVideo:(id)sender {
  // create our UnifeyeMobileViewController and present it
  video* unifeyeMobileViewController = [[video alloc] initWithNibName:@"video" bundle:nil];
  unifeyeMobileViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
  [viewController presentModalViewController:unifeyeMobileViewController animated:YES];
  [unifeyeMobileViewController release];
  
  }
  </code></pre>
  
  <p>in video.m class:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  // Do any additional setup after loading the view from its nib.
  
  NSBundle *bundle = [NSBundle mainBundle];
  NSString *moviePath = [bundle pathForResource:@"debutteaser" ofType:@"mp4"];
  NSURL  *movieURL = [[NSURL fileURLWithPath:moviePath] retain];
  MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
  theMovie.scalingMode = MPMovieScalingModeAspectFill;
  [theMovie play];
  MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];
  [self presentMoviePlayerViewControllerAnimated:moviePlayer];
  }
  </code></pre>