As part of a QML QtQuick app I'm working on, I want to retrieve certain photo file metadata: latitude, longitude, and file-create date. To this end, I've tried to use the ExifInfo class in ArcGISExtras 1.1. However, it doesn't seem to be working for me.
When I set ExifInfo.filePath, the resulting ExifInfo.isExifValid is always false, and the gpsLongitude and gpsLatitude properties are always NaN. Not even the undocumented refresh() method seems to do anything. I have verified that the filePath and url properties do change properly after this. I've tried this on Windows 10 and Android 9.
Do you have a sample that might show how to set the file and retrieve its EXIF properties? The doc page sample is lacking a little context.
ExifInfo QML Type | ArcGIS for Developers
Thanks.
[Edit]
A little trial and error showed me that it works to set ExifInfo.filePath with a value like "c:/photos/photo1.jpg" rather than using a url-style value such as "file:///c:/photos/photo1.jpg", and that setting the url property doesn't work.