0

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

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 ");}];

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

4

0 回答 0