I was using UIImagePickerController
to select the video files from Image Gallery of IPhone using
imagePicker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
and that code is working fine and picker shows me all available videos in Gallery but the problem is that UIImagePickerController
do not shows all videos of IPhone like videos on Video folder of Iphone and also the synched videos on IPhone. In short it only shows video recorded from Iphone only. But my requirement is to show all videos in Iphone and getting their path so that I can write them using FileManager
.
I also tried using
MPMediaPickerController *picker =
[[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeAnyAudio];
picker.delegate = self;
picker.allowsPickingMultipleItems = YES;
picker.prompt = NSLocalizedString (@"AddSongsPrompt", @"Prompt to user to choose some songs to play");
[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleDefault animated:YES];
[self presentModalViewController: picker animated: YES];
[picker release];
But it also shows me music files of Iphone not video. Please some one has any idea how to do this?