Post

Replies

Boosts

Views

Activity

Reply to How to get thumbnail / preview image for items imported from PHPicker?
Update: For now, I have decided to go with using QLThumbnailGenerator - https://developer.apple.com/documentation/quicklookthumbnailing/qlthumbnailgenerator to create thumbnails for resources imported from PHPicker. In the future, this generator should be very easy to swap out for NSItemProvider method loadPreviewImage if that starts working on PHPicker.
Topic: Media Technologies SubTopic: General Tags:
Oct ’20
Reply to How to correctly load video selected with PHPickerViewController?
In testing on Xcode 12.0 beta 6, in the iOS 14 Simulator, when attempting to import a QuickTime movie from PHPicker using itemProvider.loadFileRepresentation, I got the following error: "Cannot load representation of type com.apple.quicktime-movie". I was able to workaround this by using PHPickerConfigurationAssetRepresentationModeCurrent. Also in testing, I found that itemProvider.loadFileRepresentation does not work for live photos. I had to use itemProvider.loadInPlaceFileRepresentation instead. Hope this helps!
Sep ’20