Force getFile to use highest quality videos
It looks like images are forced to be in high quality (see line 321) but videos aren't. This commit forces videos to be in high quality format
This commit is contained in:
parent
e7a27ebc1d
commit
613d0c466e
@ -346,6 +346,7 @@ public class SwiftPhotoGalleryPlugin: NSObject, FlutterPlugin {
|
|||||||
|| asset.mediaType == PHAssetMediaType.audio) {
|
|| asset.mediaType == PHAssetMediaType.audio) {
|
||||||
let options = PHVideoRequestOptions()
|
let options = PHVideoRequestOptions()
|
||||||
options.isNetworkAccessAllowed = true
|
options.isNetworkAccessAllowed = true
|
||||||
|
options.deliveryMode = .highQualityFormat
|
||||||
options.version = .current
|
options.version = .current
|
||||||
|
|
||||||
manager.requestAVAsset(forVideo: asset, options: options, resultHandler: { (avAsset, avAudioMix, info) in
|
manager.requestAVAsset(forVideo: asset, options: options, resultHandler: { (avAsset, avAudioMix, info) in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user