title: iPhone:Video recording based on timer?
body: <p>I have implemented the code to do video recording feature. It works fine on 3GS device. I want to restrict the video recording based on some timer setting. Lets say, i want to allow user to do video recording only upto 20 seconds or 35 seconds like that. How can i do that? Can i show the timer kind of control on top of media player while recording the video?</p>
  
  <p>Please suggest me.</p>
  
  <p>Here is my code for video recording:</p>
  
  <pre><code>    UIImagePickerController *pickerController = 
                         [[[UIImagePickerController alloc] init] autorelease];
      pickerController.delegate = self;
      pickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
      pickerController.showsCameraControls = YES;
      pickerController.mediaTypes = [NSArray arrayWithObject:(id)kUTTypeMovie];
      [self presentModalViewController:pickerController animated:YES];
  </code></pre>