Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

特定机型及系统下,无法成功获取个别视频 #792

Open
ElvistLui opened this issue Dec 6, 2022 · 0 comments
Open

特定机型及系统下,无法成功获取个别视频 #792

ElvistLui opened this issue Dec 6, 2022 · 0 comments

Comments

@ElvistLui
Copy link

Issue Description

目前仅在iPhone 11,iOS 15.6下,获取该视频失败,其他视频或系统均没有问题

Description and Steps

index

Info

ZLPhotoBrowser version: e.g. 4.3.7
Device: e.g. iPhone 11
Device version: e.g. iOS 15.6
Xcode version: e.g. Xcode 14.1

Configuration code of ZLPhotoConfiguration

+ (void)selectVideoFor:(UIViewController *)vc asset:(PHAsset *)asset selectedBlock:(void (^)(ZLResultModel * _Nonnull))selectedBlock cancelBlock:(void (^)(void))cancelBlock {
 
 int maxVideoTime = 60;
 // 配置
 [ZLPhotoConfiguration default].allowMixSelect = NO;
 [ZLPhotoConfiguration default].allowSelectImage = NO;
 [ZLPhotoConfiguration default].allowSelectVideo = YES;
 [ZLPhotoConfiguration default].maxSelectCount = 1;
 [ZLPhotoConfiguration default].maxVideoSelectCount = 1;
 [ZLPhotoConfiguration default].maxEditVideoTime = maxVideoTime;
 [ZLPhotoConfiguration default].maxSelectVideoDuration = 3600; // 暂时显示不能选择超过1小时的视频
 [ZLPhotoConfiguration default].allowEditVideo = YES;
 [ZLPhotoConfiguration default].saveNewImageAfterEdit = YES;
 [ZLPhotoConfiguration default].minRecordDuration = 3;
 [ZLPhotoConfiguration default].maxRecordDuration = 60;
 [ZLPhotoConfiguration default].editAfterSelectThumbnailImage = YES; // 点击视频时,直接点击进入编辑页
 
 [ZLPhotoUIConfiguration default].languageType = ZLLanguageTypeChineseSimplified;
 
 ZLPhotoPreviewSheet *ps = [[ZLPhotoPreviewSheet alloc] initWithSelectedAssets:asset ? @[asset] : @[]];
 ps.selectImageBlock = ^(NSArray<ZLResultModel *> * _Nonnull results, BOOL isOriginal) {
     
     if (selectedBlock) {
         selectedBlock(results.firstObject);
     }
 };
 ps.cancelBlock = ^{
     
     if (cancelBlock) {
         cancelBlock();
     }
 };
 [ps showPhotoLibraryWithSender:vc];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant