title: how to add video to app
body: <p>I'm trying to make an app that plays a video, and I'm having problems.  I hear the sound but see no video.  I have sincerely tried looking around for a solution, but all the tips don't seem to work.  Here's the code:</p>
  
  <h2>VideoTestViewController.m</h2>
  
  <pre><code>#import "VideoTestViewController.h"
  
  @implementation VideoTestViewController
  
  // Implement loadView to create a view hierarchy programmatically, without using a nib.
  - (void)loadView {
      NSString *moviePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"spitfiregrill_iPhone.m4v"];
  
  
  
  
      MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:moviePath]];
  
      theMovie.controlStyle = MPMovieControlStyleDefault; 
  
      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:theMovie]; 
  
      [theMovie play];
  }
  
  
  
  /*
  // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
  - (void)viewDidLoad {
      [super viewDidLoad];
  }
  */
  
  
  /*
  // Override to allow orientations other than the default portrait orientation.
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      // Return YES for supported orientations
      return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }
  */
  
  - (void)didReceiveMemoryWarning {
      // Releases the view if it doesn't have a superview.
      [super didReceiveMemoryWarning];
  
      // Release any cached data, images, etc that aren't in use.
  }
  
  - (void)viewDidUnload {
      // Release any retained subviews of the main view.
      // e.g. self.myOutlet = nil;
  }
  
  
  - (void)dealloc {
      [super dealloc];
  }
  
  @end
  </code></pre>
  
  <hr>
  
  <p>VideoTestViewController.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;MediaPlayer/MediaPlayer.h&gt;
  
  @interface VideoTestViewController : UIViewController {
  
  }
  
  @end
  </code></pre>