File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -813,8 +813,13 @@ + (BOOL)requiresMainQueueSetup
813
813
PHAsset *phAsset = [phAssetFetchResult firstObject ];
814
814
dispatch_group_t group = dispatch_group_create ();
815
815
dispatch_group_enter (group);
816
+
817
+ PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc ]init];
818
+ options.version = PHVideoRequestOptionsVersionOriginal;
819
+ options.deliveryMode = PHVideoRequestOptionsDeliveryModeAutomatic;
820
+ options.networkAccessAllowed = YES ;
816
821
817
- [[PHImageManager defaultManager ] requestAVAssetForVideo: phAsset options: nil resultHandler: ^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) {
822
+ [[PHImageManager defaultManager ] requestAVAssetForVideo: phAsset options: options resultHandler: ^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) {
818
823
819
824
if ([asset isKindOfClass: [AVURLAsset class ]]) {
820
825
NSURL *url = [(AVURLAsset *)asset URL ];
You can’t perform that action at this time.
0 commit comments