Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion RNFSManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,13 @@ + (BOOL)requiresMainQueueSetup
//__block NSURL* videoURL = [NSURL URLWithString:destination];
__block NSError *error = nil;

PHFetchResult *phAssetFetchResult = [PHAsset fetchAssetsWithALAssetURLs:@[url] options:nil];
PHFetchResult *phAssetFetchResult = nil;
if ([url.scheme isEqualToString:@"ph"]) {
phAssetFetchResult = [PHAsset fetchAssetsWithLocalIdentifiers:@[[imageUri substringFromIndex: 5]] options:nil];
} else {
phAssetFetchResult = [PHAsset fetchAssetsWithALAssetURLs:@[url] options:nil];
}

PHAsset *phAsset = [phAssetFetchResult firstObject];

PHVideoRequestOptions *options = [[PHVideoRequestOptions alloc] init];
Expand Down