cocoa touch - how to import video from iphone with no time duration -


can 1 me please want pick video iphone recorded of uiimagepicker controller. want copy apps document directory. ---------------------------------- prashant

i unsure of mean no time duration. can copying/moving in uiimagepickerdelegate method.

- (void) imagepickercontroller:(uiimagepickercontroller *)picker   didfinishpickingmediawithinfo:(nsdictionary *)info {      nsurl *movieurl = (nsurl*)[info objectforkey:uiimagepickercontrollermediaurl];      nsstring *documentsdirectory = [nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes) objectatindex:0];     nsurl *saveurl = [nsurl fileurlwithpath:[documentsdirectory stringbyappendingpathcomponent:@"movie.mov"]];      nserror *error;     if (!([[nsfilemanager defaultmanager] moveitematurl:movieurl tourl:saveurl error:&error])) {         nslog(@"error saving: %@", [error localizeddescription]);     }      [picker dismissmodalviewcontrolleranimated:yes]; } 

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

c# - how to write client side events functions for the combobox items -

ssh client with paramiko (python) -