longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.71k stars 950 forks source link

alwaysRequestOriginal - video support (fetching videos from iCloud) #844

Closed patryk-sredzinski closed 11 months ago

patryk-sredzinski commented 11 months ago

Issue Description

Is there any way to fetch videos from iCloud, when selecting them from gallery? So I all videos are quickly accessible in selectImageBlock block?

Description and Steps

Right now, when I select multiple videos from my CameraRoll. I receive PHAssets, and I need to call: ZLPhotoManager.fetchVideo(for: asset) for each of them.

Can we have it implemented in the picker itself? So I'll see the 'waiting...' spinner for the fetching time?

Info

ZLPhotoBrowser version: e.g. 4.4.3 Device: iPhone 11 Device version: iOS 16.6 Xcode version: Xcode 14.3

longitachi commented 11 months ago

alwaysRequestOriginal is only used for fetch the full image for the asset.

The demo now supports downloading videos on iCloud before selecting videos. Cocoapods has not been uploaded yet. https://github.com/longitachi/ZLPhotoBrowser/blob/ea087338107abebf591d6125a1f491263aaf3c80/Sources/General/ZLPhotoConfiguration.swift#L100-L102