---
title: recordedDuration
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturefileoutput/recordedduration
---

# recordedDuration

Indicates the duration of the media recorded to the current output file.

## Declaration

```swift
var recordedDuration: CMTime { get }
```

## Discussion

Discussion If recording is in progress, this property returns the total time recorded so far.

## See Also

### Setting file output properties

- [delegate](avfoundation/avcapturefileoutput/delegate.md)
- [maxRecordedDuration](avfoundation/avcapturefileoutput/maxrecordedduration.md)
- [maxRecordedFileSize](avfoundation/avcapturefileoutput/maxrecordedfilesize.md)
- [minFreeDiskSpaceLimit](avfoundation/avcapturefileoutput/minfreediskspacelimit.md)
- [outputFileURL](avfoundation/avcapturefileoutput/outputfileurl.md)
- [recordedFileSize](avfoundation/avcapturefileoutput/recordedfilesize.md)
- [isRecording](avfoundation/avcapturefileoutput/isrecording.md)
- [isRecordingPaused](avfoundation/avcapturefileoutput/isrecordingpaused.md)
