Merge pull request #6 from wildsurfer/patch-1

Force getFile to use highest quality videos
This commit is contained in:
Wenqi Li 2020-09-20 15:29:34 +08:00 committed by GitHub
commit 0006fb5c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,6 +346,7 @@ public class SwiftPhotoGalleryPlugin: NSObject, FlutterPlugin {
|| asset.mediaType == PHAssetMediaType.audio) {
let options = PHVideoRequestOptions()
options.isNetworkAccessAllowed = true
options.deliveryMode = .highQualityFormat
options.version = .current
manager.requestAVAsset(forVideo: asset, options: options, resultHandler: { (avAsset, avAudioMix, info) in