How can I choose a video form UIImagePickerController and play it?
===

Now I use the below code to get the NSURL. But after I got the NSURL how can I play it?            


 

    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
            {
                NSString *mediaType = [info objectForKey:UIImagePickerControllerMediaType];
                if ([mediaType isEqualToString:@"public.image"]){
                    // UIImage *selectedImage = [info objectForKey:UIImagePickerControllerOriginalImage];
                    UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
                    NSLog(@"found an image");
                }
                else if ([mediaType isEqualToString:@"public.movie"]){
                    NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL];
                    NSLog([videoURL absoluteString]);
                    NSLog(@"found a video");
                    
                    
                    
                }
                [picker dismissModalViewControllerAnimated:YES];
            
            }