title: Why can't I capture a screenshot of MPMoviePlayerController?
body: <p>I need to capture a screen shot of a video playing in mpmovieplayer controller, but all I get is a red screen (I made the coverView with red background and 0.5 alpha). </p>
  
  <p>Here is the code:</p>
  
  <pre><code>NSArray *windows = [[UIApplication sharedApplication] windows];
  if ([windows count] &gt; 1)
  {
      UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow];
  
  
      UIView *coverView = [[UIView alloc] initWithFrame:moviePlayerWindow.bounds];
      [mainController.moviePlayer pause];  //Without that it won't work either!
      coverView.backgroundColor = [UIColor redColor];
      coverView.alpha = 0.5;
      [moviePlayerWindow addSubview:coverView];
  
      UIGraphicsBeginImageContext(coverView.bounds.size);
      [coverView.layer renderInContext:UIGraphicsGetCurrentContext()];
  
      UIImage *screenShot;
  
      screenShot = UIGraphicsGetImageFromCurrentImageContext();
  
      UIGraphicsEndImageContext();
  
      UIImageWriteToSavedPhotosAlbum(screenShot, self, nil, nil);
  }
  </code></pre>
  
  <p>Any ideas???</p>
  
  <p>Thanks</p>