Open mavencode01 opened 8 years ago
Weird thing is that it works in the example project.
I had a similar issue, I was getting "Data Unavailable" error. Maybe the app permission for accessing the camera roll was disabled. I enabled it and everything worked fine.
In case anyone else is having this issue today, I would suggest using the PHPhotoLibrary to handling this use case.
- (void) saveToCameraRoll:(NSURL *)outputURL
{
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
PHAssetChangeRequest *changeRequest = [PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL:outputURL];
}
completionHandler:^(BOOL success, NSError *error) {
if (success) {
NSLog(@"save done");
}
else {
NSLog(@"something went wrong %@", error.localizedDescription);
}
}];
}
I can't export the video to the Camera roll.
Seems the output url is not pointing to the right merge file url.