简体   繁体   English

从iPhone中的相机拍摄时,将视频保存到照片库

[英]Saving videos to photo library when taken from camera in IPhone

I was wondering if there is a method similar to UIImageWriteToSavedPhotosAlbum(UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo), that saves Videos taken from the iphone camera to the u sers Photo Albums... been trying to look for it in apple docs but havent found anything. 我想知道是否有类似于UIImageWriteToSavedPhotosAlbum(UIImage * image,id completionTarget,SEL completionSelector,void * contextInfo)的方法,将从iphone相机拍摄的视频保存到u sers Photo Albums ...一直试图寻找它在苹果文档但没有找到任何东西。

Thanks 谢谢

挖掘后:答案是SDK 3.0中没有这样的功能,但它是3.1中的,该方法是无效的UISaveVideoAtPathToSavedPhotosAlbum(NSString * videoPath,id completionTarget,SEL completionSelector,void * contextInfo);,下面是一个链接http: //developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UISaveVideoAtPathToSavedPhotosAlbum

I too was looking forward to the ability to save videos to the camera roll... but now that 3.1 is out, I still haven't found a way to do it. 我也期待能够将视频保存到相机胶卷......但是现在3.1已经出来了,我仍然没有找到办法。

Maybe what they were referring to was the ability to save videos received in emails and SMS messages to the camera roll (which ARE new features in the 3.1 OS). 也许他们所指的是将电子邮件和短信中收到的视频保存到相机胶卷的能力(这是3.1操作系统中的新功能)。 The only new class related to video that I've seen is the UIVideoEditorController ( http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIVideoEditorController_ClassReference/Reference/Reference.html ), and there are some new properties for UIImagePickerController that let you specify max video duration, and video quality... but I still haven't found anything that lets you save videos to the camera roll. 我见过的唯一与视频相关的新类是UIVideoEditorController( http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIVideoEditorController_ClassReference/Reference/Reference.html ),还有一些新的UIImagePickerController的属性,可以让你指定最大视频持续时间和视频质量...但我还没有找到任何可以让你将视频保存到相机胶卷的东西。

Has anyone else figured this out? 有没有其他人想到这一点?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM