When I use Uiimagepickercontroller, the video
When you are finished, use
-(void) Imagepickercontroller: (Uiimagepickercontroller *) Picker Didfinishpickingmediawithinfo: (NSDictionary *) info
Save the required data, the data links or data are placed in the dictionary info, that is, info keeps the system for you to save the original video path.
What about the raw data after I've saved my own stuff and exited? Do you want to delete it automatically? The answer is NO!
So, if you don't need it, you'll have to delete it yourself.
-(void) Imagepickercontroller: (uiimagepickercontroller *) Picker didfinishpickingmediawithinfo: ( nsdictionary *) info{ if (picker.mediatypes[0]== (nsstring *) kUTTypeMovie) { NSError *err; NSURL *videoURL=[info objectForKey:UIImagePickerControllerMediaURL]; NSData *videoData=[NSData dataWithContentsOfURL:videoURL]; //Save the video to your desired folder, this is my own method [self savevideotocache:videodata]; //Delete raw Data NSFileManager *fm=[NSFileManager defaultManager]; [fm removeitematurl:videourl error:&err]; } [self&nbSp;dismissviewcontrolleranimated:yes completion:null];}
PS: Photo Doesn't matter, because it's only in memory and won't be stored permanently!
After using webcam recording, you need to delete the system cache data!