PHImageManager cannot export a video file
Originator: | Mike.house.nsk | ||
Number: | rdar://37236379 | Date Originated: | February 5 2018, 10:40 PM |
Status: | opened | Resolved: | no |
Product: | iOS | Product Version: | iOS 11.2.5 (15D5046b) |
Classification: | Reproducible: | always |
Area: Photos Framework Summary: I see this problem for some video files in Camera Roll where they got via AirDrop or other sources, that is these videos aren't made by current iDevice's camera. It is reproducible for all devices that I tested with. Steps to Reproduce: For example, take a file .3gp format from Apple source https://support.apple.com/en-us/HT201549. After you downloaded it, you need to send it to device via AirDrop or email for example. Then to export this file you can use PHImageManager.default().requestExportSession(...) or PHImageManager.default().requestAVAsset(...) methods of PHImageManager shared instance. Expected Results: It should have exported it Actual Results: Error is received: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (1885696621), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x1c0a40300 {Error Domain=NSOSStatusErrorDomain Code=1885696621 "(null)" UserInfo={AVErrorFourCharCode='perm'}}} Optional([AnyHashable("PHImageResultIsInCloudKey"): 0, AnyHashable("PHImageFileSandboxExtensionTokenKey"): 9f3b1f2c03317b5a6f41e93337f025488ffd6305;00000000;00000000;000000000000001b;com.apple.avasset.read-only;01;01000003;0000000000c9db40;/private/var/mobile/Media/DCIM/100APPLE/IMG_0513.3GP, AnyHashable("PHImageResultWantedImageFormatKey"): 20001, AnyHashable("PHImageResultDeliveredImageFormatKey"): 20000]) Configuration: iPhone 7 Plus
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!