<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSampleCursor/currentSampleDuration",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSampleCursor(py)currentSampleDuration"
  },
  "title" : "currentSampleDuration"
}
-->

# currentSampleDuration

The decode duration of the sample at the cursor’s current position.

```
var currentSampleDuration: CMTime { get }
```

## Discussion

If the cursor needs to move past its current position to determine the decode duration of the current sample, the value of this property is <doc://com.apple.documentation/documentation/CoreMedia/CMTime/indefinite>. This condition can occur with streaming formats such as MPEG-2 transport streams.

---

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)