Reputation: 31
I am currently creating an app that charges fines through illegal driveway videos.
An illegal driving car video taken by a complainant must submit the original video, but it will be a problem if you submit the converted video instead of the original video.
To determine if it is the original video or not, I want to know the original video creation date of the video converted by someone?
Upvotes: 1
Views: 525
Reputation: 4355
You can achieve this by using the creationDate
property of PHAsset
:
let asset = PHAsset.fetchAssetsWithALAssetURLs([videoUrl], options: nil).firstObject as! PHAsset
print("Creation Date: " + String(asset.creationDate))
Upvotes: 1