user3427989
user3427989

Reputation: 31

iOS How to know original video creation date of video?

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

Answers (1)

arunjos007
arunjos007

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

Related Questions