duration

duration

duration Instance Property of PHAsset The duration, in seconds, of the video asset.

var duration: TimeInterval { get }

Discussion

For photo assets, the duration is always zero.