title: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]
body: <p>I'm trying to make a free music app and i am trying to put in mp4 video of the music. But the second button just makes it crash with    <i>  <code>return UIApplicationMain(argc, argv, nil, 
  NSStringFromClass([AppDelegate class]</code>   </i>  The code i'm using is    <i></p>
  
  <pre><code>- (IBAction)playButton:(id)sender {
  NSString *stringPath = [[NSBundle mainBundle]pathForResource:@"Under_Control" ofType:@"mp3"];
  
  NSURL *url = [NSURL fileURLWithPath:stringPath];
  
  mpc = [[MPMoviePlayerController alloc]initWithContentURL:url];
  [mpc setMovieSourceType:MPMovieSourceTypeFile];
  
  [[self view]addSubview:mpc.view];
  
  [mpc setFullscreen:YES];
  
  [mpc play];
  </code></pre>
  
  <p></i></p>
  
  <p>And also put</p>
  
  <p><i>  {
   <code>MPMoviePlayerController *mpc;</code> 
  }</i></p>
  
  <p>Under <i> <code>@interface ViewController;</code> </i></p>