From 8eed082b6003b2e5decd9441b39012b9c1e291d4 Mon Sep 17 00:00:00 2001 From: robyweb Date: Sun, 16 Dec 2018 20:36:06 -0800 Subject: [PATCH] Update RNFSManager.m --- RNFSManager.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RNFSManager.m b/RNFSManager.m index cfb1d01f..43d3a384 100755 --- a/RNFSManager.m +++ b/RNFSManager.m @@ -811,10 +811,13 @@ + (BOOL)requiresMainQueueSetup __block NSError *error = nil; PHFetchResult *phAssetFetchResult = [PHAsset fetchAssetsWithALAssetURLs:@[url] options:nil]; PHAsset *phAsset = [phAssetFetchResult firstObject]; + PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc] init]; + options.networkAccessAllowed = YES; + dispatch_group_t group = dispatch_group_create(); dispatch_group_enter(group); - [[PHImageManager defaultManager] requestAVAssetForVideo:phAsset options:nil resultHandler:^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) { + [[PHImageManager defaultManager] requestAVAssetForVideo:phAsset options:options resultHandler:^(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info) { if ([asset isKindOfClass:[AVURLAsset class]]) { NSURL *url = [(AVURLAsset *)asset URL];