Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to import Video from iphone library and play in application
    primarykey
    data
    text
    <p>i am using following code to show video library</p> <pre><code> -(IBAction)showVideoLibrary { UIImagePickerController *videoPicker = [[UIImagePickerController alloc] init]; videoPicker.delegate = self; videoPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; videoPicker.mediaTypes =[[NSArray alloc] initWithObjects: (NSString *)kUTTypeMovie,nil]; if(self.popoverController!=nil) { [self.popoverController release]; } self.popoverController = [[UIPopoverController alloc] initWithContentViewController:videoPicker]; popoverController.delegate = self; popoverController.popoverContentSize=CGSizeMake(320,1000); [popoverController presentPopoverFromRect:CGRectMake(0,0,10,10) inView:self.view permittedArrowDirections:nil animated:YES]; } </code></pre> <p>and for receiving the selected Video Url i am using following function</p> <pre><code>- (void)imagePickerController: (UIImagePickerController *)picker2 didFinishPickingMediaWithInfo: (NSDictionary *)info { NSString *mediaType = [info valueForKey:UIImagePickerControllerMediaType]; if([mediaType isEqualToString:@"public.movie"]) { NSLog(@"came to video select..."); NSURL *videoUrl=(NSURL*)[info objectForKey:@"UIImagePickerControllerMediaURL"]; NSLog(@"Got Movie Url==%@",videoUrl); } </code></pre> <p>this is the code i am using, i can see list of video's present in library, but when i press "USE" button, it is showing Compressing video.. and i am unable to cancel it, and i am not getting any kind of url in the </p> <pre><code>- (void)imagePickerController: (UIImagePickerController *)picker2 didFinishPickingMediaWithInfo: (NSDictionary *)info </code></pre> <p>function.. Any ideas to solve this problem.. and get url in to the app.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload