Browse Source

networkAccessAllowed

Marino Faggiana 7 years ago
parent
commit
7c83186f1b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Utility/NCRequestAsset.m

+ 2 - 2
iOSClient/Utility/NCRequestAsset.m

@@ -43,7 +43,7 @@
             dispatch_semaphore_t semaphoreGroup = dispatch_semaphore_create(0);
 
             PHVideoRequestOptions *options = [PHVideoRequestOptions new];
-            options.networkAccessAllowed = true;
+            options.networkAccessAllowed = YES; // iCloud
             
             [[PHImageManager defaultManager] requestPlayerItemForVideo:asset options:options resultHandler:^(AVPlayerItem * _Nullable playerItem, NSDictionary * _Nullable info) {
                 
@@ -126,7 +126,7 @@
             dispatch_semaphore_t semaphoreGroup = dispatch_semaphore_create(0);
             
             PHImageRequestOptions *options = [PHImageRequestOptions new];
-            options.synchronous = NO;
+            options.networkAccessAllowed = YES; // iCloud
             
             [[PHImageManager defaultManager] requestImageDataForAsset:asset options:options resultHandler:^(NSData *imageData, NSString *dataUTI, UIImageOrientation orientation, NSDictionary *info) {