<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/METrackReader/loadUneditedDuration(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(pl)METrackReader(im)loadUneditedDurationWithCompletionHandler:"
  },
  "title" : "loadUneditedDuration(completionHandler:)"
}
-->

# loadUneditedDuration(completionHandler:)

Returns the duration of the track, disregarding edits.

```
optional func loadUneditedDuration(completionHandler: @escaping @Sendable (CMTime, (any Error)?) -> Void)
```

```
optional func uneditedDuration() async throws -> CMTime
```

## Parameters

`completionHandler`

The completion block to execute when the load operation finishes.

## Discussion

Media Toolbox uses this information to validate edit information and to check if the media is suitable for gapless playback.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)