title: UIImagePickerController mediatype kUTTypeMovie runtime exception
body: <p>I am developing an iPhone App where I need to only view all the videos present in the Photos Library of a device. I am using the following code </p>
  
  <pre><code>UIImagePickerController picker = [[UIImagePickerController alloc] init];
  picker.mediaTypes = [NSArray arrayWithObject:(NSString*)kUTTypeMovie];
  </code></pre>
  
  <p>I have imported  and added the MobileCoreServices framework to my project. </p>
  
  <p>It works great on the iPhone 3GS, running on iOS 4.3, but when I run it on my iPod Touch, having iOS 4.2.1, it shows a runtime exception</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No available types for source 2'
  </code></pre>
  
  <p>I have tried replacing the term kUTTypeMovie with the string.</p>
  
  <pre><code>picker.mediaTypes = [NSArray arrayWithObject:@"public.movie"]; 
  </code></pre>
  
  <p>Again, it works great on the iPhone 3GS with the aforesaid iOS version, but again crashes on the iPod Touch. </p>
  
  <p>I realized that UICoreTypes.h, which defines the above said string constant, is supported in devices with iOS 3 and above. </p>
  
  <p>what could be the possible problem? I have followed other posts related to such problems, like <a href="https://stackoverflow.com/questions/3093216/ios4-uiimagepickercontroller-doesnt-suport-mediatypes-nsarray-arraywithobjec">kUTTypeMovie not working</a></p>
  
  <p>but, this only tells us to include the above included framework. Please help. </p>