从应用文档到相机胶卷的电影mp4视频

时间:2014-11-11 06:31:26

标签: ios objective-c save camera-roll

我想在相机胶卷上保存视频

self.videopath = @" /var/mobile/Applications/AE75E729-7F10-478B-9DAF-E730EB4231D1/Documents/Videos/12.mp4"

第一种方法:

UISaveVideoAtPathToSavedPhotosAlbum(self.videopath, nil, NULL, NULL);

第二种方法:

NSURL *movieURL = [NSURL fileURLWithPath:self.videopath];


                    ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
                 [library writeVideoAtPathToSavedPhotosAlbum:movieURL
                                             completionBlock:^(NSURL *assetURL, NSError *error){NSLog(@"complete ");}];

这两种解决方案都不适合我。 提前致谢

0 个答案:

没有答案