//視頻轉(zhuǎn)動圖
+ (void)changeTypeInVideo:(NSURL*)videoPath block:(void(^)(BOOLisS))newB{
//? ? [SVProgressHUD showWithStatus:@"視頻壁紙制作中"];
? ? [selfmp4ChangeMovInMp4File:videoPathblock:^(NSURL*file) {
? ? ? ? if(file) {
? ? ? ? ? ? [LivePhotoMaker makeLivePhotoByLibrary:file completed:^(NSDictionary * resultDic) {
? ? ? ? ? ? ? ? if(resultDic) {
? ? ? ? ? ? ? ? ? ? NSURL* videoUrl = resultDic[@"MOVPath"];
? ? ? ? ? ? ? ? ? ? NSURL* imageUrl = resultDic[@"JPGPath"];
? ? ? ? ? ? ? ? ? ? [LivePhotoMaker saveLivePhotoToAlbumWithMovPath:videoUrl ImagePath:imageUrl completed:^(BOOL isSuccess) {
? ? ? ? ? ? ? ? ? ? ? ? NSLog(@"%d",isSuccess);
? ? ? ? ? ? ? ? ? ? ? ? if(isSuccess) {
//? ? ? ? ? ? ? ? ? ? ? ? ? ? [SVProgressHUD showSuccessWithStatus:@"制作成功"];
? ? ? ? ? ? ? ? ? ? ? ? ? ? newB(YES);
? ? ? ? ? ? ? ? ? ? ? ? }else{
//? ? ? ? ? ? ? ? ? ? ? ? ? ? [SVProgressHUD showErrorWithStatus:@"再試一次"];
? ? ? ? ? ? ? ? ? ? ? ? ? ? newB(NO);
? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? ? }];
? ? ? ? ? ? ? ? }else{
//? ? ? ? ? ? ? ? ? ? [SVProgressHUD showErrorWithStatus:@"再試一次"];
? ? ? ? ? ? ? ? ? ? newB(NO);
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }];
? ? ? ? }else{
//? ? ? ? ? ? [SVProgressHUD showErrorWithStatus:@"再試一次"];
? ? ? ? ? ? newB(NO);
? ? ? ? }
? ? }];
//? ? return YES;
}