1

I have name of some videos which are going to be stored in video gallery of iphone, can I get the url of the video I specify through file name, i.e. if I specify a.png video name then it should return the url of that video.

Anjani
  • 153
  • 10

1 Answers1

1

It sound like you want to access a video in the user's folders directly. You can not do this.

Instead you must get the user to select a Video using a standard picker, something like this:

myImagePickerController.mediaTypes =
       [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];

See this question.

Community
  • 1
  • 1
Robert
  • 37,670
  • 37
  • 171
  • 213
  • Thanks for your answer. Actually my application has to use fixed videos of more then 8 GB memory. Its ipad application and can not use internet. The application need to access video by name. I am not able to find a way to do this functionality as even application's max limit is 2GB. Please help me with the issue – Anjani Nov 28 '11 at 06:43
  • There isn't a way, you have to get the user to pick the Video to get a reference to it. – Robert Nov 28 '11 at 19:07
  • I dont think I understand your question now. Are you saying you need to download an 8GB video? – Robert Nov 30 '11 at 09:11
  • Finally we had fixed videos and application was going to be used by some people only so the solution we found was that client was adding the videos in photo library with fixed name in fixed folder so we could access the video. As application's max limit is 2GB we could neither keep it in application and as internet was not to be used we could not download it, so that was the only solution we found. – Anjani Aug 06 '13 at 06:39