Resolved (Live Photo Only :(
The photo and video contain live photo metadata, the only missed info is metadata.plist, just create it (some key code):
static let livePhotoMetadataFileName = "metadata.plist"
static let livePhotoMetadataContent =
"""
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PFVideoComplementMetadataVersionKey</key>
<string>1</string>
</dict>
</plist>
"""
fm.createFile(
atPath: bundleURL.appendingPathComponent(ImageTool.livePhotoMetadataFileName).path,
contents: ImageTool.livePhotoMetadataContent.data(using: .utf8))
Don't forget to move three files into the some.pvt directory.
Topic:
App & System Services
SubTopic:
Core OS
Tags: