title: How do I pick and record video using UIImagePickerController for iPhone?
body: <p>I want to pick a video from iPhone for my application for uploading on the Web.
  I am using the UIImagePickerController for it.</p>
  
  <p><strong>For for opening picker</strong></p>
  
  <pre><code>UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
  imagePicker.delegate = self;
  imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  imagePicker.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeMovie, nil];
  [self presentModalViewController:imagePicker animated:YES];
  </code></pre>
  
  <p>It opens the photo library and only shows the movie type content.<br>
  Now I have the following questions:</p>
  
  <ul>
  <li>How do I get the video when I select the video then it ready to play and then when I click on choose then its compression nothing happen .. even I am not able to cancel it.</li>
  <li>As we have separate folders in iphone then how do we open video folder?</li>
  </ul>
  
  <p>If I am able to choose then how do I get video detail as delegate method is </p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editInfo {
  </code></pre>
  
  <p>and it has <strong>(UIImage *)img</strong> parameter. How do I get it as video?</p>