IQMediaPickerController icon indicating copy to clipboard operation
IQMediaPickerController copied to clipboard

IQmediapickerController not supporting iCloud PHAssets (videos)

Open OfirMalach opened this issue 5 years ago • 0 comments

Some PHAssets returns url = nil (or assetIdentifier = nil) I got notice about it from users using videos that backup on iCloud. Is there any quick solution?

Those error codes might help:

FAILED - PHASSET NOT CONTAIN URL:

PHImageErrorKey = "Error Domain=NSCocoaErrorDomain Code=-1 \"(null)\"";
PHImageResultIsDegradedKey = 0;
PHImageResultIsInCloudKey = 1;
PHImageResultRequestIDKey = 483; (or 160)

WHEN SUCCESS - PHASSET CONTAIN URL:

PHImageFileSandboxExtensionTokenKey = "6fa17....00000000000001b;com.apple.avasset.read-only;01;/private/var/mobile/Media/DCIM/100APPLE/IMG_0386.MOV";
PHImageResultDeliveredImageFormatKey = 20000;
PHImageResultIsInCloudKey = 0;
PHImageResultWantedImageFormatKey = 20002;

OfirMalach avatar Jan 08 '20 20:01 OfirMalach