---
title: duration
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phasset/duration
---

# duration

The duration, in seconds, of the video asset.

## Declaration

```swift
var duration: TimeInterval { get }
```

## Discussion

Discussion For photo assets, the duration is always zero.

## See Also

### Reading Asset Metadata

- [contentType](photos/phasset/contenttype.md)
- [mediaType](photos/phasset/mediatype.md)
- [PHAssetMediaType](photos/phassetmediatype.md)
- [mediaSubtypes](photos/phasset/mediasubtypes.md)
- [PHAssetMediaSubtype](photos/phassetmediasubtype.md)
- [sourceType](photos/phasset/sourcetype.md)
- [PHAssetSourceType](photos/phassetsourcetype.md)
- [pixelWidth](photos/phasset/pixelwidth.md)
- [pixelHeight](photos/phasset/pixelheight.md)
- [addedDate](photos/phasset/addeddate.md)
- [creationDate](photos/phasset/creationdate.md)
- [modificationDate](photos/phasset/modificationdate.md)
- [location](photos/phasset/location.md)
- [isFavorite](photos/phasset/isfavorite.md)
- [isHidden](photos/phasset/ishidden.md)
