PHContentEditingInput does not grant a sandbox extension necessary to read from the AVURLAsset's underlying URL
| Originator: | stephenpoletto | ||
| Number: | rdar://18800190 | Date Originated: | 28-Oct-2014 12:40 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Calling -[PHAsset requestContentEditingInputWithOptions:completionHandler:] on a video PHAsset will return a PHContentEditingInput with a populated 'avAsset' of type AVURLAsset. Attempting to read from the underlying URL of the AVURLAsset will fail. Steps to Reproduce: Sample project: https://www.dropbox.com/s/ko0yv8kzcpmvtir/Sandbox%20Bug.zip?dl=0 1) Open the sample project and run it. It will crash. 2) Toggle the 'useRequestAVAssetAPI' to YES. This demonstrates a workaround whereby holding on to the AVAsset returned from -[PHImageManager requestAVAssetForVideo:options:resultHandler:] enables the application to read from the PHContentEditingInput's underlying AVAsset URL. The sample application will no longer crash. Expected Results: Reading from the PHContentEditingInput's underlying AVURLAsset URL should be allowed. Actual Results: An application must utilize the workaround provided in order to read from the underlying URL. Version: iOS 8.1 Notes: Configuration: iPhone 5, 64 GB, AT&T Attachments: 'Sandbox Bug.zip' was successfully uploaded.
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!