我使用下面的代碼來記錄視頻。在iPhone中捕獲視頻
UIImagePickerController *m_objpicker;=[[UIImagePickerController alloc] init];
m_objpicker.sourceType = UIImagePickerControllerSourceTypeCamera;
m_objpicker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
// hide the camera controls
//picker.showsCameraControls=NO;
m_objpicker.delegate = self;
//picker.allowsImageEditing = NO;
m_objpicker.allowsEditing=NO;
// and put our overlay view in
//picker.cameraOverlayView=m_objOverlayView;
[self presentModalViewController:m_objpicker animated:YES];
當我們完成錄音
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
NSURL *m_objMediaURL=[info objectForKey:UIImagePickerControllerMediaURL];
[m_objpicker dismissModalViewControllerAnimated:YES];
}
我的疑問是,如何將捕獲的視頻保存到我們指定的位置。還有如何使用 UISaveVideoAtPathToSavedPhotosAlbum。
什麼所有的事情,我需要在我的代碼修改,這樣我可以保存視頻到指定位置
感謝,
請將此作爲正確回答:這個地方是給和拿。 – Lance 2010-07-28 21:57:31