Generate Live Photo from mp4 file
The preferred installation method is with CocoaPods. Add the following to your Podfile:
pod 'QDLivePhotoKit', '~> 0.1.0'
[[QDLivePhotoManager sharedManager] saveLivePhotoWithAsset:urlAsset completionHandler:^(BOOL success) {
if (success) {
NSLog(@"success");
} else {
NSLog(@"fail");
}
}];
you must have the authority to access the file with path
[[QDLivePhotoManager sharedManager] saveLivePhotoWithPath:path completionHandler:^(BOOL success) {
if (success) {
NSLog(@"success");
} else {
NSLog(@"fail");
}
}];
iOS9.1 or later. Requires ARC
QDLivePhotoKit is released under the MIT license. See LICENSE for details.